From: newbluemoon <blaumolch@mailbox.org>
To: 29015@debbugs.gnu.org
Subject: bug#29015: LONG_LONG_MAX/MIN not defined on systems using musl libc
Date: Thu, 26 Oct 2017 18:01:25 +0200 [thread overview]
Message-ID: <dc397db4-3956-4e7a-cbd1-56ac87a06afa@mailbox.org> (raw)
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
reply other threads:[~2017-10-26 16:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dc397db4-3956-4e7a-cbd1-56ac87a06afa@mailbox.org \
--to=blaumolch@mailbox.org \
--cc=29015@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).