From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: newbluemoon Newsgroups: gmane.lisp.guile.bugs Subject: bug#29015: LONG_LONG_MAX/MIN not defined on systems using musl libc Date: Thu, 26 Oct 2017 18:01:25 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1509035120 22702 195.159.176.226 (26 Oct 2017 16:25:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2017 16:25:20 +0000 (UTC) To: 29015@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Oct 26 18:25:14 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kxr-00042u-BK for guile-bugs@m.gmane.org; Thu, 26 Oct 2017 18:25:03 +0200 Original-Received: from localhost ([::1]:53785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kxy-0000IW-P4 for guile-bugs@m.gmane.org; Thu, 26 Oct 2017 12:25:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kxt-0000H6-9y for bug-guile@gnu.org; Thu, 26 Oct 2017 12:25:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kxq-0006Yf-MF for bug-guile@gnu.org; Thu, 26 Oct 2017 12:25:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7kxq-0006YC-94 for bug-guile@gnu.org; Thu, 26 Oct 2017 12:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7kxp-0005BW-VY for bug-guile@gnu.org; Thu, 26 Oct 2017 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: newbluemoon Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 26 Oct 2017 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29015 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150903509619908 (code B ref -1); Thu, 26 Oct 2017 16:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2017 16:24:56 +0000 Original-Received: from localhost ([127.0.0.1]:35325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kxj-0005B2-TU for submit@debbugs.gnu.org; Thu, 26 Oct 2017 12:24:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7kbe-0004bb-EX for submit@debbugs.gnu.org; Thu, 26 Oct 2017 12:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kbT-0008Vt-Kk for submit@debbugs.gnu.org; Thu, 26 Oct 2017 12:02:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7kbT-0008Vl-Hb for submit@debbugs.gnu.org; Thu, 26 Oct 2017 12:01:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7kbJ-0000vn-Rc for bug-guile@gnu.org; Thu, 26 Oct 2017 12:01:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7kbG-0008Ok-NA for bug-guile@gnu.org; Thu, 26 Oct 2017 12:01:45 -0400 Original-Received: from mx2.mailbox.org ([80.241.60.215]:52587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7kbG-0008OE-Dy for bug-guile@gnu.org; Thu, 26 Oct 2017 12:01:42 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 6CA134C993 for ; Thu, 26 Oct 2017 18:01:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-language:content-type :content-type:mime-version:date:date:message-id:subject:subject :from:from:received; s=mail20150812; t=1509033685; bh=/S5/2DnZyG qkZYxF2cBoQs8zHDYGd9MyCBS8+t2LavA=; b=fEiL0e58czs9W+iX8USaq1zgFw e7gWUpCoO4//vs727N4Jd1j5S3x32PfHqImJODxsff+j9KsZN6l2VPcs51fClW6v RkxbcHADduHcEtGe+FZ5ZKoeuPT/uj/XuJw2FmeEKtv9djXO3J+OlMztB2Ws4iSy tgwKxhhgxmvjgr9z9kIPT3tF7QUuviuNUuC+gwqw2RM8Bo9QO2xSybQNlZ8rKpZb LX0mKtn1/08t9FgAq8aBVLX0nW0OPl7oQXM6sTju6QdRfhy7ubjD9Q/zSzqRDGzZ gWV7eXK4PWgv4H2A6taR9fZwk8F/nkuIAlZkkCPWfXxhzC3KpluVkht424vQ== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id PYIKI-rz5jG8 for ; Thu, 26 Oct 2017 18:01:25 +0200 (CEST) Content-Language: de-DE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 26 Oct 2017 12:24:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8863 Archived-At: 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