aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-03 00:43:21 -0400
committerMike Frysinger <vapier@gentoo.org>2012-07-03 14:27:44 -0400
commit3ddcf39b393511930718ea72eae0ff7ba5c87f1d (patch)
treea5bc70af8307bf0fd00b7a8356a0e188ab2316bd
parentprecompile headers.h to speed up build slightly (diff)
downloadsandbox-3ddcf39b393511930718ea72eae0ff7ba5c87f1d.tar.gz
sandbox-3ddcf39b393511930718ea72eae0ff7ba5c87f1d.tar.bz2
sandbox-3ddcf39b393511930718ea72eae0ff7ba5c87f1d.zip
include stdint.h/inttypes.h too
These contain useful defines which we sometimes want to leverage. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--configure.ac2
-rw-r--r--headers.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a6fcd5b..26f6822 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,7 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([
execinfo.h
fcntl.h
grp.h
+ inttypes.h
libgen.h
limits.h
memory.h
@@ -87,6 +88,7 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([
stdarg.h
stdbool.h
stddef.h
+ stdint.h
stdio.h
stdlib.h
string.h
diff --git a/headers.h b/headers.h
index ab9c17d..512c85b 100644
--- a/headers.h
+++ b/headers.h
@@ -32,6 +32,9 @@
#ifdef HAVE_GRP_H
# include <grp.h>
#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#endif
@@ -62,6 +65,9 @@
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif