diff options
author | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2011-10-10 23:33:38 -0400 |
---|---|---|
committer | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2011-10-10 23:37:51 -0400 |
commit | 7401e648d44f9324a313346f45e86fc5e779a7aa (patch) | |
tree | be30ac9265b6ea5f8913aed1c6e9ace6eabe9216 /src/Blowfish.c | |
parent | 323ce9ef951378dc96ce14c9e514e9aa19ab39d9 (diff) | |
download | pycrypto-7401e648d44f9324a313346f45e86fc5e779a7aa.tar.gz |
Fix build on Solaris 9 and eariler
We use <sys/inttypes.h> on Solaris platforms that don't have <stdint.h>.
This should fix https://bugs.launchpad.net/pycrypto/+bug/518871, reported by
Sebastian Kayser.
Diffstat (limited to 'src/Blowfish.c')
-rw-r--r-- | src/Blowfish.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Blowfish.c b/src/Blowfish.c index f0d8594..8a6232f 100644 --- a/src/Blowfish.c +++ b/src/Blowfish.c @@ -26,8 +26,15 @@ * http://www.schneier.com/paper-blowfish-fse.html */ +#include "config.h" +#if HAVE_STDINT_H +# include <stdint.h> +#elif defined(__sun) || defined(__sun__) +# include <sys/inttypes.h> +#else +# error "stdint.h not found" +#endif #include <assert.h> -#include <stdint.h> #include <string.h> #include "Python.h" |