-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
make[2]: Entering directory '/home/jb/Projects/xserver-xorg-input-synaptics/src'
CC synproto.lo
In file included from /usr/include/string.h:634:0,
from /usr/include/xorg/os.h:53,
from /usr/include/xorg/misc.h:115,
from /usr/include/xorg/xf86str.h:37,
from /usr/include/xorg/xf86.h:44,
from /usr/include/xorg/xf86Xinput.h:54,
from synproto.h:36,
from synproto.c:24:
/usr/include/xorg/os.h:541:1: error: expected identifier or '(' before '__extension__'
strndup(const char *str, size_t n);
^
Makefile:504: recipe for target 'synproto.lo' failed
make[2]: *** [synproto.lo] Error 1
make[2]: Leaving directory '/home/jb/Projects/xserver-xorg-input-synaptics/src'
Looks like os.h duplicates prototypes for some system functions unless xorg-server.h is included first, according to this discussion http://lists.x.org/archives/xorg-devel/2014-July/043067.html
Currently os.h cannot be included safely (without it creating duplicate
prototypes for system functions) without first including one of:
dix-config.h
xorg-server.h
xorg-config.h
Metadata
Metadata
Assignees
Labels
No labels