diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-06-14 05:49:29 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-06-14 05:49:29 +0000 |
commit | 03c2f48939f0c0269693a92a88217cfb1024ac95 (patch) | |
tree | 9438261f73237ddbf9d17f79673a4121867e4dc8 /lang/scm/files/patch-scmfig.h | |
parent | * add stage support (diff) |
- Fix build with i386
PR: 190900
Submitted by: ports fury
Notes
Notes:
svn path=/head/; revision=357742
Diffstat (limited to 'lang/scm/files/patch-scmfig.h')
-rw-r--r-- | lang/scm/files/patch-scmfig.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/scm/files/patch-scmfig.h b/lang/scm/files/patch-scmfig.h new file mode 100644 index 000000000000..0b193ee5fd15 --- /dev/null +++ b/lang/scm/files/patch-scmfig.h @@ -0,0 +1,32 @@ +--- scmfig.h.orig ++++ scmfig.h +@@ -256,11 +256,7 @@ + #ifdef __alpha + # define SHORT_INT + #endif +-#ifdef __ia64__ +-# define SHORT_INT +-# define CDR_DOUBLES +-#endif +-#ifdef __x86_64 ++#if defined(__amd64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) + # define SHORT_INT + # define CDR_DOUBLES + #endif +@@ -393,14 +389,10 @@ + # define WHITE_SPACES ' ':case '\t':case '\r':case '\f' + #endif + +-#ifdef __ia64__ ++# if defined(__amd64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) + # define PTR2INT(x) ((long)(x)) + #else +-# ifdef __x86_64 +-# define PTR2INT(x) ((long)(x)) +-# else +-# define PTR2INT(x) ((int)(x)) +-# endif ++# define PTR2INT(x) ((int)(x)) + #endif + + #ifndef __builtin_expect |