only use _darwin10_Unwind_FindEnclosingFunction on darwin >= 10

gcc:
	* unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
	Dunmmy function with NULL return unless the target is 
	OSX >= 10.6 (Darwin10).
libjava:
	* include/posix.h: Make substitution of 
	_darwin10_Unwind_FindEnclosingFunction conditional on 
	OSX >= 10.6 (Darwin10).

From-SVN: r163309
This commit is contained in:
Iain Sandoe
2010-08-17 14:54:10 +00:00
parent 2642f659a6
commit e2a1fcf0ad
4 changed files with 19 additions and 6 deletions
+3 -3
View File
@@ -56,9 +56,9 @@ details. */
#define _Jv_platform_solib_suffix ".so"
#endif
#if defined(__APPLE__) && defined(__MACH__)
#undef _Unwind_FindEnclosingFunction
#define _Unwind_FindEnclosingFunction(PC) _darwin10_Unwind_FindEnclosingFunction(PC)
#if __MACH__ && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060)
# 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.