This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Update darwin-fallback.c for SUS-like headers
- From: gkeating at apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Oct 2004 15:44:37 -0700 (PDT)
- Subject: Update darwin-fallback.c for SUS-like headers
Apple is trying to make its headers more SUS conformant, which means
no 'ppc_float_state_t' in <ucontext.h>.
Bootstrapped & tested on powerpc-darwin8.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/gcc-darwin-posixfallback.patch============
2004-10-29 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
Index: config/rs6000/darwin-fallback.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/darwin-fallback.c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 darwin-fallback.c
--- config/rs6000/darwin-fallback.c 1 Jul 2004 04:09:05 -0000 1.1
+++ config/rs6000/darwin-fallback.c 29 Oct 2004 22:43:03 -0000
@@ -38,6 +38,7 @@
#include <stdbool.h>
#include <signal.h>
#include <ucontext.h>
+#include <mach/thread_status.h>
typedef unsigned long reg_unit;
============================================================