diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2010-02-02 08:19:26 +0000 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2010-02-02 09:19:26 +0100 |
commit | 4546b861fba352876c796c09ce323090a96f9725 (patch) | |
tree | a4940819e0c8ae92163e5af2cbaab99a47b16b55 /libjava/include/posix.h | |
parent | 1bcb71c4595c9cb2d61cdf2691edbbd3a589da71 (diff) | |
download | gcc-4546b861fba352876c796c09ce323090a96f9725.zip gcc-4546b861fba352876c796c09ce323090a96f9725.tar.gz gcc-4546b861fba352876c796c09ce323090a96f9725.tar.bz2 |
re PR java/41991 (gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9)
2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
PR java/41991
* include/posix.h: Redefine _Unwind_FindEnclosingFunction.
From-SVN: r156446
Diffstat (limited to 'libjava/include/posix.h')
-rw-r--r-- | libjava/include/posix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 5f522a3..61b2a6a 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -56,6 +56,11 @@ details. */ #define _Jv_platform_solib_suffix ".so" #endif +#if defined(__APPLE__) && defined(__MACH__) +#undef _Unwind_FindEnclosingFunction +#define _Unwind_FindEnclosingFunction(PC) _darwin10_Unwind_FindEnclosingFunction(PC) +#endif + // Some POSIX systems don't have O_SYNC and O_DYSNC so we define them here. // Needed in java/io/natFileDescriptorPosix.cc. #if !defined (O_SYNC) && defined (O_FSYNC) |