aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorSteve Kenton <skenton@ou.edu>2007-09-11 23:16:01 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2007-09-11 23:16:01 +0000
commitd4c56bd764c96d3be34dfe2b2941b620e5a41be6 (patch)
tree81fb70d230f3db91a32d4ccb33ed736c76dba919 /gcc/config
parentc2ba97097b567d97c5c00435d2e9f0fc1079e355 (diff)
downloadgcc-d4c56bd764c96d3be34dfe2b2941b620e5a41be6.zip
gcc-d4c56bd764c96d3be34dfe2b2941b620e5a41be6.tar.gz
gcc-d4c56bd764c96d3be34dfe2b2941b620e5a41be6.tar.bz2
linux-unwind.h: Guard with inhibit_libc.
* pa/linux-unwind.h: Guard with inhibit_libc. * pa/hpux-unwind.h: Likewise. From-SVN: r128396
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/pa/hpux-unwind.h4
-rw-r--r--gcc/config/pa/linux-unwind.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/pa/hpux-unwind.h b/gcc/config/pa/hpux-unwind.h
index 1082a34..474c46d 100644
--- a/gcc/config/pa/hpux-unwind.h
+++ b/gcc/config/pa/hpux-unwind.h
@@ -29,6 +29,9 @@ Boston, MA 02110-1301, USA. */
/* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */
+/* Don't use this if inhibit_libc is set.
+ The build for this target will fail trying to include missing headers. */
+#ifndef inhibit_libc
#include <signal.h>
#include <sys/ucontext.h>
#include <unistd.h>
@@ -358,3 +361,4 @@ pa_fallback_frame_state (struct _Unwind_Context *context,
return _URC_END_OF_STACK;
}
+#endif /* inhibit_libc */
diff --git a/gcc/config/pa/linux-unwind.h b/gcc/config/pa/linux-unwind.h
index 467d952..812561e 100644
--- a/gcc/config/pa/linux-unwind.h
+++ b/gcc/config/pa/linux-unwind.h
@@ -29,6 +29,9 @@ Boston, MA 02110-1301, USA. */
/* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */
+/* Don't use this if inhibit_libc is set.
+ The build for this target will fail trying to include missing headers. */
+#ifndef inhibit_libc
#include <signal.h>
#include <sys/ucontext.h>
@@ -137,3 +140,4 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
fs->retaddr_column = DWARF_ALT_FRAME_RETURN_COLUMN;
return _URC_NO_REASON;
}
+#endif /* inhibit_libc */