[Tizen 6.0] Update for build sandbox/mkashkarov/tizen_6.0_build
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Fri, 29 Nov 2019 16:27:10 +0000 (19:27 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Mon, 2 Dec 2019 12:41:54 +0000 (15:41 +0300)
Extract minimum changes from:

  63b42fa Convert GNU make to use the gnulib portability library

to enable build.

Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
glob/glob.c

index 1a19205..11e0c8d 100644 (file)
@@ -227,8 +227,6 @@ extern char *alloca ();
 #  endif /* sparc or HAVE_ALLOCA_H.  */
 # endif        /* GCC.  */
 
-# define __alloca      alloca
-
 #endif
 
 #ifndef __GNU_LIBRARY__
@@ -283,6 +281,14 @@ extern char *alloca ();
 #endif
 #include <glob.h>
 
+#if !defined __alloca
+# define __alloca alloca
+#endif
+
+#if !defined __stat
+# define __stat stat
+#endif
+
 #ifdef HAVE_GETLOGIN_R
 extern int getlogin_r __P ((char *, size_t));
 #else