diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-22 04:26:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-22 04:26:45 +0000 |
commit | a68fcbf807106417fb2410ce6a2592befaebe328 (patch) | |
tree | c1668e7df52e925ccdff7b252867a7bbfa587a17 /src | |
parent | c2d5b67dd2ba6b142db5b9c9aadaadd365b1404e (diff) | |
download | tor-a68fcbf807106417fb2410ce6a2592befaebe328.tar.gz tor-a68fcbf807106417fb2410ce6a2592befaebe328.zip |
Initial IRIX compatibility fixes: check for inttypes.h; check for platform cell_t.
svn:r3648
Diffstat (limited to 'src')
-rw-r--r-- | src/common/torint.h | 3 | ||||
-rw-r--r-- | src/or/or.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index 7bebb1009d..75e45239c8 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -33,6 +33,9 @@ #include <machine/limits.h> #endif #endif +#ifdef HAVE_INTTYPES_H +#include <inttypes.h> +#endif #if (SIZEOF_INT8_T != 0) #define HAVE_INT8_T diff --git a/src/or/or.h b/src/or/or.h index 840ca4a6bb..059adefa57 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -128,6 +128,12 @@ #include "../common/util.h" #include "../common/torgzip.h" +#if (SIZEOF_CELL_T != 0) +/* On Irix, stdlib.h defines a cell_t type, so we need to make sure + * that our stuff always calls cell_t something different. */ +#define cell_t tor_cell_t +#endif + /** Define this if you want Tor to crash when any problem comes up, * so you can get a coredump and track things down. */ #undef TOR_FRAGILE |