diff options
author | decke <decke@FreeBSD.org> | 2011-12-23 18:03:42 +0800 |
---|---|---|
committer | decke <decke@FreeBSD.org> | 2011-12-23 18:03:42 +0800 |
commit | 0f3f6c0bd08f741c361286fbe4d91b30306dee5a (patch) | |
tree | 289bce1f40f36211bfa48e2500c3b1f24d0ffe95 /emulators | |
parent | 99b872d8c77eb73b82fe9341f5d211d6c41d5fdd (diff) | |
download | freebsd-ports-gnome-0f3f6c0bd08f741c361286fbe4d91b30306dee5a.tar.gz freebsd-ports-gnome-0f3f6c0bd08f741c361286fbe4d91b30306dee5a.tar.zst freebsd-ports-gnome-0f3f6c0bd08f741c361286fbe4d91b30306dee5a.zip |
- Add fix for build failure on FreeBSD 10-CURRENT after r228444
include/iprt/types.h:174: error: redefinition of typedef 'bool'
@/sys/types.h:271: error: previous declaration of 'bool' was here
Submitted by: Daichi GOTO <daichi@freebsd.org>
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/virtualbox-ose-additions/files/patch-include-iprt-types.h | 19 | ||||
-rw-r--r-- | emulators/virtualbox-ose-kmod/files/patch-include-iprt-types.h | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-additions/files/patch-include-iprt-types.h b/emulators/virtualbox-ose-additions/files/patch-include-iprt-types.h new file mode 100644 index 000000000000..afa28bbb1461 --- /dev/null +++ b/emulators/virtualbox-ose-additions/files/patch-include-iprt-types.h @@ -0,0 +1,19 @@ +- Fix build failure on FreeBSD 10-CURRENT after r228444 + +include/iprt/types.h:174: error: redefinition of typedef 'bool' +@/sys/types.h:271: error: previous declaration of 'bool' was here + +Submitted by: Daichi GOTO <daichi@freebsd.org> +--- include/iprt/types.h.orig 2011-10-28 16:29:51.000000000 +0200 ++++ include/iprt/types.h 2011-12-22 10:17:16.000000000 +0100 +@@ -167,6 +167,10 @@ + # if defined(__GNUC__) + # if defined(RT_OS_LINUX) && __GNUC__ < 3 + typedef uint8_t bool; ++# elif defined(RT_OS_FREEBSD) ++# ifndef __bool_true_false_are_defined ++typedef _Bool bool; ++# endif + # else + # if defined(RT_OS_DARWIN) && defined(_STDBOOL_H) + # undef bool diff --git a/emulators/virtualbox-ose-kmod/files/patch-include-iprt-types.h b/emulators/virtualbox-ose-kmod/files/patch-include-iprt-types.h new file mode 100644 index 000000000000..afa28bbb1461 --- /dev/null +++ b/emulators/virtualbox-ose-kmod/files/patch-include-iprt-types.h @@ -0,0 +1,19 @@ +- Fix build failure on FreeBSD 10-CURRENT after r228444 + +include/iprt/types.h:174: error: redefinition of typedef 'bool' +@/sys/types.h:271: error: previous declaration of 'bool' was here + +Submitted by: Daichi GOTO <daichi@freebsd.org> +--- include/iprt/types.h.orig 2011-10-28 16:29:51.000000000 +0200 ++++ include/iprt/types.h 2011-12-22 10:17:16.000000000 +0100 +@@ -167,6 +167,10 @@ + # if defined(__GNUC__) + # if defined(RT_OS_LINUX) && __GNUC__ < 3 + typedef uint8_t bool; ++# elif defined(RT_OS_FREEBSD) ++# ifndef __bool_true_false_are_defined ++typedef _Bool bool; ++# endif + # else + # if defined(RT_OS_DARWIN) && defined(_STDBOOL_H) + # undef bool |