summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-11-29 19:27:10 +0300
committeryan11.meng <yan11.meng@samsung.com>2020-01-04 23:29:03 +0900
commita33ddabb421e9cfa5a2bcc328447295227992909 (patch)
tree8e9db14fbd4585e764c7902102b6e35c258302bd
parent586a1b47cbc42bea6c6742ff3230600b80c7fd7b (diff)
downloadmake-submit/tizen_6.0_base_hotfix/20201102.162701.tar.gz
make-submit/tizen_6.0_base_hotfix/20201102.162701.tar.bz2
make-submit/tizen_6.0_base_hotfix/20201102.162701.zip
Extract minimum changes from: 63b42fa Convert GNU make to use the gnulib portability library to enable build. Change-Id: I6060ab0c7a34714fa10c2ad59499e96db70b67e8 Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
-rw-r--r--glob/glob.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/glob/glob.c b/glob/glob.c
index 1a19205..11e0c8d 100644
--- a/glob/glob.c
+++ b/glob/glob.c
@@ -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