diff options
Diffstat (limited to 'net/socat/patches/patch-mytypes.h')
-rw-r--r-- | net/socat/patches/patch-mytypes.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/net/socat/patches/patch-mytypes.h b/net/socat/patches/patch-mytypes.h index 1029023f527..fd32324e062 100644 --- a/net/socat/patches/patch-mytypes.h +++ b/net/socat/patches/patch-mytypes.h @@ -1,15 +1,14 @@ -$NetBSD: patch-mytypes.h,v 1.2 2014/09/07 23:24:56 rodent Exp $ +$NetBSD: patch-mytypes.h,v 1.2.8.1 2015/07/26 19:57:43 tron Exp $ Use stdbool. --- mytypes.h.orig 2010-10-06 07:25:30.000000000 +0000 +++ mytypes.h -@@ -7,7 +7,7 @@ - - /* some types and macros I miss in C89 */ - --typedef enum { false, true } bool; +@@ -10,6 +10,7 @@ + #ifndef HAVE_TYPE_BOOL + # undef bool + typedef enum { false, true } bool; +#include <stdbool.h> + #endif - #define Min(x,y) ((x)<=(y)?(x):(y)) - #define Max(x,y) ((x)>=(y)?(x):(y)) + #ifndef Min |