1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Fix build on FreeBSD 9 and later where "bool" is defined in <sys/types.h>

- Bump PORTREVISION
This commit is contained in:
Max Khon 2012-02-23 08:08:51 +00:00
parent d1095723cf
commit d58d43ef84
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=292102
2 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -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 <sys/types.h>
+
+#ifndef __bool_true_false_are_defined
typedef int bool;
enum {
false,
true
};
+#endif
#endif /* _STDBOOL_H_ */