gmake: __alloca and __stat are provided only when building with GLIBC.
Fix a build failure on Ubuntu 18.04.
This commit is contained in:
parent
677168d711
commit
327f8a3690
|
@ -207,7 +207,7 @@ my_realloc (p, n)
|
|||
#endif /* __GNU_LIBRARY__ */
|
||||
|
||||
|
||||
#if !defined __alloca && !(defined __GNU_LIBRARY__ || defined __GLIBC__)
|
||||
#if !defined __alloca
|
||||
|
||||
# ifdef __GNUC__
|
||||
# undef alloca
|
||||
|
@ -230,7 +230,7 @@ extern char *alloca ();
|
|||
|
||||
#endif
|
||||
|
||||
#ifndef __GNU_LIBRARY__
|
||||
#if !defined __stat
|
||||
# define __stat stat
|
||||
# ifdef STAT_MACROS_BROKEN
|
||||
# undef S_ISDIR
|
||||
|
|
Loading…
Reference in New Issue