diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-10-17 21:54:06 -0400 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2015-06-01 16:28:57 +1000 |
commit | 1e674e8854590c911f4685ccfe93a70bcc91303c (patch) | |
tree | bd2492ca92e99d533dda8a052e7f8548926e0fe0 | |
parent | 44958b9e6d28b17816b96744384f629926f96c20 (diff) | |
download | perl-1e674e8854590c911f4685ccfe93a70bcc91303c.tar.gz |
After Yosemite there's no /usr/include.
(The headers are under /Applications/Xcode.app/...)
(cherry picked from commit c4f300c9d46ec8ace48cff0477dd2866cfe10f79)
-rw-r--r-- | hints/darwin.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index 276695ad60..e1f20af37a 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -123,9 +123,11 @@ ccflags="${ccflags} -fno-common -DPERL_DARWIN" # stdint.h defining INT32_MIN as (-INT32_MAX-1) # -- Edward Moy # -case "$(grep '^#define INT32_MIN' /usr/include/stdint.h)" in +if test -f /usr/include/stdint.h; then + case "$(grep '^#define INT32_MIN' /usr/include/stdint.h)" in *-2147483648) ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" ;; -esac + esac +fi # Avoid Apple's cpp precompiler, better for extensions if [ "X`echo | ${cc} -no-cpp-precomp -E - 2>&1 >/dev/null`" = "X" ]; then |