summaryrefslogtreecommitdiff
path: root/src/Blowfish.c
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2013-02-21 00:18:52 -0800
committerDwayne Litzenberger <dlitz@dlitz.net>2013-04-21 20:41:18 -0700
commit076560be889ef220c8fb10dd68635468939345ab (patch)
tree54588441b24ea4a2f3f7200d335d897037d99821 /src/Blowfish.c
parent6dbfccadecc55c203dd76f9e504c94ba042ec12f (diff)
downloadpycrypto-076560be889ef220c8fb10dd68635468939345ab.tar.gz
Include inttypes.h or sys/inttypes.h based on what autoconf tells us
This should fix compilation on HP-UX 11.31. Thanks Adam Woodbeck for reporting this.
Diffstat (limited to 'src/Blowfish.c')
-rw-r--r--src/Blowfish.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Blowfish.c b/src/Blowfish.c
index fd90fd7..9985728 100644
--- a/src/Blowfish.c
+++ b/src/Blowfish.c
@@ -30,10 +30,12 @@
#include "config.h"
#if HAVE_STDINT_H
# include <stdint.h>
-#elif defined(__sun) || defined(__sun__)
+#elif HAVE_INTTYPES_H
+# include <inttypes.h>
+#elif HAVE_SYS_INTTYPES_H
# include <sys/inttypes.h>
#else
-# error "stdint.h not found"
+# error "stdint.h and inttypes.h not found"
#endif
#include <assert.h>
#include <string.h>