Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/gmake/dist/glob According to:



details:   https://anonhg.NetBSD.org/src/rev/b9464b600b2a
branches:  trunk
changeset: 831842:b9464b600b2a
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 16 16:11:40 2018 +0000

description:
According to:
    https://sourceforge.net/p/predef/wiki/Libraries/
The macro used for old glibc is __GNU_LIBRARY__ and the new one is __GLIBC__.
Try to fix linux compilation by detecting both.

diffstat:

 external/gpl2/gmake/dist/glob/glob.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3048d219f109 -r b9464b600b2a external/gpl2/gmake/dist/glob/glob.c
--- a/external/gpl2/gmake/dist/glob/glob.c      Mon Apr 16 16:02:57 2018 +0000
+++ b/external/gpl2/gmake/dist/glob/glob.c      Mon Apr 16 16:11:40 2018 +0000
@@ -207,7 +207,7 @@
 #endif /* __GNU_LIBRARY__ */
 
 
-#if !defined __alloca && !defined __GNU_LIBRARY__
+#if !defined __alloca && !(defined __GNU_LIBRARY__ || defined __GLIBC__)
 
 # ifdef        __GNUC__
 #  undef alloca



Home | Main Index | Thread Index | Old Index