aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-10-29 14:41:28 +0000
committerWerner Koch <[email protected]>2014-10-29 14:41:28 +0000
commitf5592fcff308007322a201c970a6d5e8763c9fe3 (patch)
treecc8fd6c6e2d213fcc80f802ac1b0ed40e0644bc1
parentspeedo: Fixes for native build. (diff)
downloadgnupg-f5592fcff308007322a201c970a6d5e8763c9fe3.tar.gz
gnupg-f5592fcff308007322a201c970a6d5e8763c9fe3.zip
Fix stdint.h problem for Apple.
* gl/stdint_.h [__APPLE__]: Include hack. -- Patch suggested by Patrick Brunschwig.
Diffstat (limited to '')
-rw-r--r--gl/stdint_.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gl/stdint_.h b/gl/stdint_.h
index 19577e790..1118e8d39 100644
--- a/gl/stdint_.h
+++ b/gl/stdint_.h
@@ -55,6 +55,13 @@
# include @ABSOLUTE_STDINT_H@
#endif
+#ifdef __APPLE__
+ /* Apple's implementation of <stdint.h> is bugy; we therefore use
+ the source definitions. */
+# include <_types/_intmax_t.h>
+# include <_types/_uintmax_t.h>
+#endif
+
/* <sys/types.h> defines some of the stdint.h types as well, on glibc,
IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but