mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-21 22:07:52 +00:00
d77ffeda4f
This patch makes it possible to build make 4.2.1 using newer systems that otherwise would complain about a missing definition of __stat. Signed-off-by: Christian Svensson <blue@cmd.nu>
21 lines
500 B
Diff
21 lines
500 B
Diff
--- clean/make-4.2.1/glob/glob.c 2013-10-20 19:14:38.000000000 +0200
|
|
+++ make-4.2.1/glob/glob.c 2021-09-18 17:51:09.814552369 +0200
|
|
@@ -208,7 +208,7 @@
|
|
#endif /* __GNU_LIBRARY__ || __DJGPP__ */
|
|
|
|
|
|
-#if !defined __alloca && !defined __GNU_LIBRARY__
|
|
+#if !defined __alloca && defined __GNU_LIBRARY__
|
|
|
|
# ifdef __GNUC__
|
|
# undef alloca
|
|
@@ -231,7 +231,7 @@
|
|
|
|
#endif
|
|
|
|
-#ifndef __GNU_LIBRARY__
|
|
+#ifdef __GNU_LIBRARY__
|
|
# define __stat stat
|
|
# ifdef STAT_MACROS_BROKEN
|
|
# undef S_ISDIR
|