Browse Source

include <inttypes.h> if we have it
openbsd on a sparc64 needs this (apparently)


svn:r1971

Roger Dingledine 21 years ago
parent
commit
80cee93f84
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/or.h

+ 3 - 0
src/or/or.h

@@ -38,6 +38,9 @@
 #endif
 #endif
 #include "../common/torint.h"
 #include "../common/torint.h"
 #include "../common/fakepoll.h"
 #include "../common/fakepoll.h"
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 #ifdef HAVE_SYS_PARAM_H
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h> /* FreeBSD needs this to know what version it is */
 #include <sys/param.h> /* FreeBSD needs this to know what version it is */
 #endif
 #endif