1
# DP: Check for the sys/auxv.h header file.
3
--- a/src/gcc/configure.ac
4
+++ b/src/gcc/configure.ac
6
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7
fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8
sys/resource.h sys/param.h sys/times.h sys/stat.h \
10
direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h)
12
# Check for thread headers.
13
--- a/src/gcc/config.in
14
+++ b/src/gcc/config.in
15
@@ -1446,6 +1440,12 @@
19
+/* Define to 1 if you have the <sys/auxv.h> header file. */
20
+#ifndef USED_FOR_TARGET
21
+#undef HAVE_SYS_AUXV_H
25
/* Define to 1 if you have the <sys/file.h> header file. */
26
#ifndef USED_FOR_TARGET
27
#undef HAVE_SYS_FILE_H
28
--- a/src/gcc/config/rs6000/driver-rs6000.c
29
+++ b/src/gcc/config/rs6000/driver-rs6000.c
34
+#ifdef HAVE_SYS_AUXV_H
35
+# include <sys/auxv.h>
38
#if defined (__APPLE__) || (__FreeBSD__)
39
# include <sys/types.h>
40
# include <sys/sysctl.h>