aboutsummaryrefslogtreecommitdiffstats
path: root/main/guile/fix-defines.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-30 13:50:02 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-30 13:50:02 +0000
commit2a459269ce32598411253ae323fa8cc2f71821fd (patch)
treeeb813c39080f3862e72edffe66decab644aabf25 /main/guile/fix-defines.patch
parent7dc7156b5543eba20d6b74b63ae7fd6e817a51df (diff)
downloadaports-2a459269ce32598411253ae323fa8cc2f71821fd.tar.bz2
aports-2a459269ce32598411253ae323fa8cc2f71821fd.tar.xz
main/guile: fix musl build
Diffstat (limited to 'main/guile/fix-defines.patch')
-rw-r--r--main/guile/fix-defines.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/guile/fix-defines.patch b/main/guile/fix-defines.patch
new file mode 100644
index 0000000000..341354d468
--- /dev/null
+++ b/main/guile/fix-defines.patch
@@ -0,0 +1,24 @@
+--- guile-1.8.8.orig/libguile/fports.c
++++ guile-1.8.8/libguile/fports.c
+@@ -78,8 +78,8 @@
+ #define OFF_T_MAX LONG_MAX
+ #define OFF_T_MIN LONG_MIN
+ #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
+-#define OFF_T_MAX LONG_LONG_MAX
+-#define OFF_T_MIN LONG_LONG_MIN
++#define OFF_T_MAX LLONG_MAX
++#define OFF_T_MIN LLONG_MIN
+ #else
+ #error Oops, unknown OFF_T size
+ #endif
+--- guile-1.8.8.orig/libguile/gc_os_dep.c
++++ guile-1.8.8/libguile/gc_os_dep.c
+@@ -1459,7 +1459,7 @@
+ # undef __KERNEL__
+ # endif
+
+-# else
++# elif defined(__GLIBC__)
+
+ /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
+ /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */