mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Hack to make pari compile again on 5.3 prior to release
Reviewed by: maintainer Approved by: portmgr (marcus)
This commit is contained in:
parent
46e4cb7310
commit
f9dde1308b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118542
@ -38,7 +38,7 @@ PLIST= ${PKGDIR}/pkg-plist.emacs
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 502126
|
||||
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
||||
EXTRA_PATCHES= ${FILESDIR}/hack-src:headers::paricom.h
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
|
20
math/pari/files/hack-src:headers::paricom.h
Normal file
20
math/pari/files/hack-src:headers::paricom.h
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/headers/paricom.h.orig Fri Nov 3 13:00:24 2000
|
||||
+++ src/headers/paricom.h Wed Sep 29 20:22:41 2004
|
||||
@@ -86,3 +86,2 @@
|
||||
|
||||
-#ifdef NOEXP2
|
||||
# ifdef __cplusplus
|
||||
@@ -92,12 +91,4 @@
|
||||
# define exp2(x) (exp((double)(x)*LOG2))
|
||||
-# ifndef __CYGWIN32__
|
||||
-# define log2(x) (log((double)(x))/LOG2)
|
||||
-# endif
|
||||
+# define log2(x) (log((double)(x))/LOG2)
|
||||
# endif
|
||||
-#else
|
||||
- BEGINEXTERN
|
||||
- double exp2(double);
|
||||
- double log2(double);
|
||||
- ENDEXTERN
|
||||
-#endif
|
||||
|
Loading…
Reference in New Issue
Block a user