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>
# endif /* sparc or HAVE_ALLOCA_H. */
# endif /* GCC. */
-# define __alloca alloca
-
#endif
#ifndef __GNU_LIBRARY__
#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