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/_counter.h | |
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/_counter.h')
-rw-r--r-- | src/_counter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/_counter.h b/src/_counter.h index f671094..2817865 100644 --- a/src/_counter.h +++ b/src/_counter.h @@ -27,10 +27,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 typedef struct { |