summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2010-09-07 19:32:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2010-09-07 19:32:58 +0000
commitf54482a4612ef9f409e7ffe247b621ce90604d48 (patch)
tree5b3607cce310b087ac00db4bd36f7aaa5cb8a39f /compat.h
parentafcc29a51d88745d8163fd7f53f596bb9a2a041f (diff)
Solaris 9 has no stdint.h, ugh. Reported by a couple of people most
recently Timothy Larson.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/compat.h b/compat.h
index 3db11bc0..90758165 100644
--- a/compat.h
+++ b/compat.h
@@ -1,4 +1,4 @@
-/* $Id: compat.h,v 1.25 2010-06-06 13:00:46 tcunha Exp $ */
+/* $Id: compat.h,v 1.26 2010-09-07 19:32:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -85,6 +85,12 @@ typedef uint64_t u_int64_t;
#include <imsg.h>
#endif
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_BROKEN_CMSG_FIRSTHDR
/* CMSG_FIRSTHDR broken on OS X. */
#undef CMSG_FIRSTHDR