]> Savannah Git Hosting - gnulib.git/commit
unistd: fix iOS check conditional
authorDaiki Ueno <ueno@gnu.org>
Thu, 11 Dec 2014 07:07:31 +0000 (16:07 +0900)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Dec 2014 18:15:26 +0000 (10:15 -0800)
commit73991ca4ba667724ea90f5603ba2161c7382b902
tree662ef80376d5c613429fc54c9af10de7a88d4c2f
parent89db07c7c6927dcd5e59dcd5fa0bdad7e40f8269
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.
ChangeLog
lib/unistd.in.h