summaryrefslogtreecommitdiff
path: root/lang/guile2/files/patch-libguile_gen-scmconfig.c
diff options
context:
space:
mode:
authorAndrew "RhodiumToad" Gierth <andrew@tao11.riddles.org.uk>2023-08-07 00:00:30 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2023-08-09 15:01:14 +0200
commit85fe592a0ce9c0d22d19696b0cc915f55f6203d8 (patch)
tree7ca666d7dc62b3f5a858fd88827d5ea4b2e82f7b /lang/guile2/files/patch-libguile_gen-scmconfig.c
parentsysutils/consolekit2: Update to 1.2.6 (diff)
lang/guile[23]: prefer long over long long for scm_off_t
When long and long long are both the same size as off_t, prefer long for scm_off_t even though it should make no difference, because llvm16 seems to consider them distinct types as arguments in function pointer types. Also it seems cleaner. fixes mailutils with GUILE=on on llvm16 on amd64. Fixes: 94218d3a91189c7afea956e8905d5e5ecf879a2c PR: 260960
Diffstat (limited to 'lang/guile2/files/patch-libguile_gen-scmconfig.c')
-rw-r--r--lang/guile2/files/patch-libguile_gen-scmconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/guile2/files/patch-libguile_gen-scmconfig.c b/lang/guile2/files/patch-libguile_gen-scmconfig.c
index db1dd3fc9113..b72e32681a5d 100644
--- a/lang/guile2/files/patch-libguile_gen-scmconfig.c
+++ b/lang/guile2/files/patch-libguile_gen-scmconfig.c
@@ -12,7 +12,7 @@
pf ("typedef int scm_t_off;\n");
pf ("#define SCM_T_OFF_MAX INT_MAX\n");
pf ("#define SCM_T_OFF_MIN INT_MIN\n");
-+#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
++#elif SIZEOF_OFF_T == SIZEOF_LONG_LONG && SIZEOF_OFF_T != SIZEOF_LONG
+ pf ("typedef long long int scm_t_off;\n");
+ pf ("#define SCM_T_OFF_MAX LLONG_MAX\n");
+ pf ("#define SCM_T_OFF_MIN LLONG_MIN\n");