diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-02-21 00:18:52 -0800 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2013-04-21 20:41:18 -0700 |
commit | 076560be889ef220c8fb10dd68635468939345ab (patch) | |
tree | 54588441b24ea4a2f3f7200d335d897037d99821 /src/Blowfish.c | |
parent | 6dbfccadecc55c203dd76f9e504c94ba042ec12f (diff) | |
download | pycrypto-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.c | 6 |
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> |