Module Name:    src
Committed By:   christos
Date:           Mon Apr 16 16:11:40 UTC 2018

Modified Files:
        src/external/gpl2/gmake/dist/glob: glob.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl2/gmake/dist/glob/glob.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl2/gmake/dist/glob/glob.c
diff -u src/external/gpl2/gmake/dist/glob/glob.c:1.3 src/external/gpl2/gmake/dist/glob/glob.c:1.4
--- src/external/gpl2/gmake/dist/glob/glob.c:1.3	Mon Apr 16 12:02:57 2018
+++ src/external/gpl2/gmake/dist/glob/glob.c	Mon Apr 16 12:11:40 2018
@@ -207,7 +207,7 @@ my_realloc (p, n)
 #endif /* __GNU_LIBRARY__ */
 
 
-#if !defined __alloca && !defined __GNU_LIBRARY__
+#if !defined __alloca && !(defined __GNU_LIBRARY__ || defined __GLIBC__)
 
 # ifdef	__GNUC__
 #  undef alloca

Reply via email to