1
# DP: Check for the sys/auxv.h header file.
3
Index: b/src/gcc/configure.ac
4
===================================================================
5
--- a/src/gcc/configure.ac
6
+++ b/src/gcc/configure.ac
7
@@ -942,6 +942,7 @@ AC_HEADER_SYS_WAIT
8
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9
fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
10
sys/resource.h sys/param.h sys/times.h sys/stat.h \
12
direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h)
14
# Check for thread headers.
15
Index: b/src/gcc/config.in
16
===================================================================
17
--- a/src/gcc/config.in
18
+++ b/src/gcc/config.in
19
@@ -1452,6 +1452,12 @@
23
+/* Define to 1 if you have the <sys/auxv.h> header file. */
24
+#ifndef USED_FOR_TARGET
25
+#undef HAVE_SYS_AUXV_H
29
/* Define to 1 if you have the <sys/file.h> header file. */
30
#ifndef USED_FOR_TARGET
31
#undef HAVE_SYS_FILE_H
32
Index: b/src/gcc/config/rs6000/driver-rs6000.c
33
===================================================================
34
--- a/src/gcc/config/rs6000/driver-rs6000.c
35
+++ b/src/gcc/config/rs6000/driver-rs6000.c
36
@@ -31,6 +31,10 @@ along with GCC; see the file COPYING3.
40
+#ifdef HAVE_SYS_AUXV_H
41
+# include <sys/auxv.h>
44
#if defined (__APPLE__) || (__FreeBSD__)
45
# include <sys/types.h>
46
# include <sys/sysctl.h>