On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
as 0 or 1 in <TargetConditionals.h>, and the previous check always
yielded true on non-iOS environment.
* lib/unistd.in.h (environ) [__APPLE__]: Check the values of
TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
they are defined.
+2014-12-11 Daiki Ueno <ueno@gnu.org>
+
+ unistd: fix iOS check conditional
+ On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
+ as 0 or 1 in <TargetConditionals.h>, and the previous check always
+ yielded true on non-iOS environment.
+ * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
+ TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
+ they are defined.
+
2014-12-09 Paul Eggert <eggert@cs.ucla.edu>
posixtm: avoid compiler warning in a better way
"VARIABLE=VALUE", terminated with a NULL. */
# if defined __APPLE__ && defined __MACH__
# include <TargetConditionals.h>
-# if !defined TARGET_OS_IPHONE && !defined TARGET_IPHONE_SIMULATOR
+# if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
# define _GL_USE_CRT_EXTERNS
# endif
# endif