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
This commit is contained in:
Jack Howarth 2010-02-02 08:19:26 +00:00 committed by Andreas Tobler
parent 1bcb71c459
commit 4546b861fb
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
PR java/41991
* include/posix.h: Redefine _Unwind_FindEnclosingFunction.
2010-01-26 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (registerClosure): Make sure closures is

View file

@ -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)