summaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2010-08-17 14:54:10 +0000
committerIain Sandoe <iains@gcc.gnu.org>2010-08-17 14:54:10 +0000
commite2a1fcf0add4aaa44ac743278eacf623d9f39f62 (patch)
tree6a46c3798cdc661bf0271c9a57d55f4961210cbb /libjava/include
parent2642f659a685886012ce45f1e04b82232878fc5a (diff)
downloadgcc-e2a1fcf0add4aaa44ac743278eacf623d9f39f62.tar.gz
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
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/posix.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 61b2a6aa3d9..b2cf3cffb0d 100644
--- a/libjava/include/posix.h
+++ b/libjava/include/posix.h
@@ -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.