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

Fix a build failure on Ubuntu 18.04.
This commit is contained in:
nonaka 2018-05-23 09:52:27 +00:00
parent 677168d711
commit 327f8a3690
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ my_realloc (p, n)
#endif /* __GNU_LIBRARY__ */ #endif /* __GNU_LIBRARY__ */
#if !defined __alloca && !(defined __GNU_LIBRARY__ || defined __GLIBC__) #if !defined __alloca
# ifdef __GNUC__ # ifdef __GNUC__
# undef alloca # undef alloca
@ -230,7 +230,7 @@ extern char *alloca ();
#endif #endif
#ifndef __GNU_LIBRARY__ #if !defined __stat
# define __stat stat # define __stat stat
# ifdef STAT_MACROS_BROKEN # ifdef STAT_MACROS_BROKEN
# undef S_ISDIR # undef S_ISDIR