Line 0
Link Here
|
|
|
1 |
To workaround the following error |
2 |
|
3 |
$ clang conftest.c -I/usr/local/include/xorg |
4 |
In file included from conftest.c:3: |
5 |
In file included from /usr/local/include/xorg/xf86Optionstr.h:27: |
6 |
/usr/local/include/xorg/list.h:216:15: error: unknown type name 'Bool'; did you mean |
7 |
'_Bool'? |
8 |
static inline Bool |
9 |
^~~~ |
10 |
_Bool |
11 |
1 error generated. |
12 |
|
13 |
$ gcc conftest.c -I/usr/local/include/xorg |
14 |
In file included from /usr/local/include/xorg/xf86Optionstr.h:27, |
15 |
from conftest.c:3: |
16 |
/usr/local/include/xorg/list.h:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xorg_list_is_empty' |
17 |
|
18 |
cf. http://cgit.freedesktop.org/xorg/xserver/commit/?id=13b5074 |
19 |
|
20 |
--- configure~ |
21 |
+++ configure |
22 |
@@ -18788,6 +18788,7 @@ CFLAGS="$XORG_CFLAGS $CFLAGS" |
23 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24 |
/* end confdefs.h. */ |
25 |
|
26 |
+ typedef int Bool; |
27 |
#include <xf86Optionstr.h> |
28 |
int |
29 |
main () |