[svn-commits] fjoe: freebsd/trunk r10468 - /freebsd/trunk/include/stdbool.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Feb 23 01:43:10 CST 2012


Author: fjoe
Date: Thu Feb 23 01:43:07 2012
New Revision: 10468

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10468
Log:
Fix build on FreeBSD 9 and later where "bool" is defined in <sys/types.h>

Modified:
    freebsd/trunk/include/stdbool.h

Modified: freebsd/trunk/include/stdbool.h
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/include/stdbool.h?view=diff&rev=10468&r1=10467&r2=10468
==============================================================================
--- freebsd/trunk/include/stdbool.h (original)
+++ freebsd/trunk/include/stdbool.h Thu Feb 23 01:43:07 2012
@@ -1,11 +1,15 @@
 #ifndef _STDBOOL_H_
 #define _STDBOOL_H_
 
+#include <sys/types.h>
+
+#ifndef __bool_true_false_are_defined
 typedef int bool;
 
 enum {
 	false,
 	true
 };
+#endif
 
 #endif /* _STDBOOL_H_ */




More information about the svn-commits mailing list