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 gmake: __alloca and __stat are...



details:   https://anonhg.NetBSD.org/src/rev/70f578b84636
branches:  trunk
changeset: 319269:70f578b84636
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Wed May 23 09:52:27 2018 +0000

description:
gmake: __alloca and __stat are provided only when building with GLIBC.

Fix a build failure on Ubuntu 18.04.

diffstat:

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

diffs (21 lines):

diff -r 5b50bf23f3e7 -r 70f578b84636 external/gpl2/gmake/dist/glob/glob.c
--- a/external/gpl2/gmake/dist/glob/glob.c      Wed May 23 08:20:12 2018 +0000
+++ b/external/gpl2/gmake/dist/glob/glob.c      Wed May 23 09:52:27 2018 +0000
@@ -207,7 +207,7 @@
 #endif /* __GNU_LIBRARY__ */
 
 
-#if !defined __alloca && !(defined __GNU_LIBRARY__ || defined __GLIBC__)
+#if !defined __alloca
 
 # ifdef        __GNUC__
 #  undef alloca
@@ -230,7 +230,7 @@
 
 #endif
 
-#ifndef __GNU_LIBRARY__
+#if !defined __stat
 # define __stat stat
 # ifdef STAT_MACROS_BROKEN
 #  undef S_ISDIR



Home | Main Index | Thread Index | Old Index