GNU bug report logs -
#29015
LONG_LONG_MAX/MIN not defined on systems using musl libc
Previous Next
To reply to this bug, email your comments to 29015 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#29015
; Package
guile
.
(Thu, 26 Oct 2017 16:25:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
newbluemoon <blaumolch <at> mailbox.org>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Thu, 26 Oct 2017 16:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
On systems using the musl libc LONG_LONG_MAX and LONG_LONG_MIN are not
defined which leads to a compilation error in certain cases. The
following patch replaces these macros with LLONG_MAX and LLONG_MIN
respectively.
--- a/libguile/fports.c 2017-03-01 17:32:58.000000000 +0100
+++ b/libguile/fports.c 2017-10-26 17:36:41.705006593 +0200
@@ -67,8 +67,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
This bug report was last modified 7 years and 231 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.