]> granicus.if.org Git - strace/commitdiff
2008-07-31 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 1 Aug 2008 01:06:31 +0000 (01:06 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 1 Aug 2008 01:06:31 +0000 (01:06 +0000)
* configure.ac: Add AC_HEADER_STDBOOL.
* defs.h [HAVE_STDBOOL_H]: #include <stdbool.h>.
Fixes Debian##492774.

configure.ac
defs.h

index da98ebe27b2ffaa34fdb442dcd670ec22fd08f9e..0a622e30a7e10fbf19c573744e2971fa08dc5b0b 100644 (file)
@@ -158,6 +158,7 @@ AC_PROG_GCC_TRADITIONAL
 AC_PROG_INSTALL
 AC_C_CONST
 AC_HEADER_STDC
+AC_HEADER_STDBOOL
 AC_HEADER_DIRENT
 AC_HEADER_STAT
 AC_CHECK_MEMBERS([struct stat.st_blksize,
diff --git a/defs.h b/defs.h
index 61fb41bb69b5854b87a827f9320db6eda1c7fbb6..df11dc6cee6512066946a823703591a5bb301cef 100644 (file)
--- a/defs.h
+++ b/defs.h
 #include <sys/time.h>
 #include <errno.h>
 
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#endif
+
 #ifdef STDC_HEADERS
 #include <stddef.h>
 #endif /* STDC_HEADERS */