From d58d43ef847dad4dcba8639363aa35bb1349bca4 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Thu, 23 Feb 2012 08:08:51 +0000 Subject: [PATCH] - Fix build on FreeBSD 9 and later where "bool" is defined in - Bump PORTREVISION --- misc/dahdi-kmod/Makefile | 2 +- .../files/patch-freebsd-include-stdbool.h | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 misc/dahdi-kmod/files/patch-freebsd-include-stdbool.h diff --git a/misc/dahdi-kmod/Makefile b/misc/dahdi-kmod/Makefile index fe346a8df6aa..ffd4b1f93aea 100644 --- a/misc/dahdi-kmod/Makefile +++ b/misc/dahdi-kmod/Makefile @@ -7,7 +7,7 @@ PORTNAME= dahdi-kmod PORTVERSION= ${DAHDI_VERSION:S/-//g} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= misc kld MASTER_SITES= ${MASTER_SITE_LOCAL}\ http://downloads.digium.com/pub/telephony/firmware/releases/:firmware diff --git a/misc/dahdi-kmod/files/patch-freebsd-include-stdbool.h b/misc/dahdi-kmod/files/patch-freebsd-include-stdbool.h new file mode 100644 index 000000000000..01de10205263 --- /dev/null +++ b/misc/dahdi-kmod/files/patch-freebsd-include-stdbool.h @@ -0,0 +1,20 @@ +Index: freebsd/include/stdbool.h +=================================================================== +--- freebsd/include/stdbool.h.orig (revision 10467) ++++ freebsd/include/stdbool.h (revision 10468) +@@ -1,11 +1,15 @@ + #ifndef _STDBOOL_H_ + #define _STDBOOL_H_ + ++#include ++ ++#ifndef __bool_true_false_are_defined + typedef int bool; + + enum { + false, + true + }; ++#endif + + #endif /* _STDBOOL_H_ */