diff options
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 7bebb1009..75e45239c 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 840ca4a6b..059adefa5 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 |