$OpenBSD: patch-src_types_h,v 1.1 2014/06/06 09:08:37 dcoppa Exp $

commit 7470834ac6613c2e22626f9511384f025f16768e
Author: Felix Morgner <felix.morgner@gmail.com>
Date:   Thu Apr 17 08:10:18 2014 +0200

Use c99 standard bool when available

--- src/types.h.orig	Fri Jun  6 10:42:40 2014
+++ src/types.h	Fri Jun  6 10:44:45 2014
@@ -1,10 +1,19 @@
 #ifndef TYPES_H_90878954
 #define TYPES_H_90878954
 
+#if __STDC_VERSION__ >= 199901L
+
+#include <stdbool.h>
+typedef bool bool_t;
+
+#else // __STDC_VERSION__
+
 typedef enum {
 	false,
 	true
 } bool_t;
+
+#endif // __STDC_VERSION__
 
 #endif
 
