Source-Changes-HG archive

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

src: Pull up following revision(s) (requested by kamil in ticket...



details:   https://anonhg.NetBSD.org/src/rev/bf7040a9ffb2
branches:  netbsd-8
changeset: 318275:bf7040a9ffb2
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Apr 17 08:04:34 2018 +0000
description:
Pull up following revision(s) (requested by kamil in ticket #768):

        external/gpl2/gmake/dist/glob/glob.c: revision 1.4

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 aaed3b84d063 -r bf7040a9ffb2 external/gpl2/gmake/dist/glob/glob.c
--- a/external/gpl2/gmake/dist/glob/glob.c      Mon Apr 16 14:36:29 2018 +0000
+++ b/external/gpl2/gmake/dist/glob/glob.c      Tue Apr 17 08:04:34 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