svn commit: r514388 - in head/devel/asmutils: . files

Jan Beich jbeich at FreeBSD.org
Sun Oct 13 12:43:26 UTC 2019


Author: jbeich
Date: Sun Oct 13 12:43:25 2019
New Revision: 514388
URL: https://svnweb.freebsd.org/changeset/ports/514388

Log:
  devel/asmutils: drop FreeBSD < 5.2 workaround
  
  __FreeBSD_version wasn't defined in that scope, so later versions
  ended up using the workaround as well.

Modified:
  head/devel/asmutils/Makefile   (contents, props changed)
  head/devel/asmutils/files/patch-lib_testm.c   (contents, props changed)

Modified: head/devel/asmutils/Makefile
==============================================================================
--- head/devel/asmutils/Makefile	Sun Oct 13 12:35:23 2019	(r514387)
+++ head/devel/asmutils/Makefile	Sun Oct 13 12:43:25 2019	(r514388)
@@ -3,7 +3,7 @@
 
 PORTNAME=	asmutils
 PORTVERSION=	0.18
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	devel
 MASTER_SITES=	http://asm.sourceforge.net/asmutils/
 

Modified: head/devel/asmutils/files/patch-lib_testm.c
==============================================================================
--- head/devel/asmutils/files/patch-lib_testm.c	Sun Oct 13 12:35:23 2019	(r514387)
+++ head/devel/asmutils/files/patch-lib_testm.c	Sun Oct 13 12:43:25 2019	(r514388)
@@ -1,6 +1,6 @@
 --- lib/testm.c.orig	Fri Jul 20 14:02:56 2001
 +++ lib/testm.c	Wed Jan 26 15:35:47 2005
-@@ -16,10 +16,22 @@
+@@ -16,10 +16,17 @@
  # define __USE_BSD 1
  # define __USE_XOPEN 1
  # define __USE_SVID 1
@@ -15,12 +15,7 @@
 +#define	M_LN10		2.30258509299404568402	/* log e10 */
 +#define	M_E		2.7182818284590452354	/* e */
 +#define	M_PI		3.14159265358979323846	/* pi */
-+#if __FreeBSD_version < 501103
-+extern char __infinity[];
-+#define	HUGE_VAL	(*(double *) __infinity)
-+#else
 +#define	HUGE_VAL	__builtin_huge_val()
-+#endif
  
  #ifndef NAN
  #define NAN (0./0.)


More information about the svn-ports-head mailing list