diff options
author | Jan Beich <jbeich@freebsd.org> | 2017-07-07 19:59:05 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-07-31 13:32:35 -0400 |
commit | abe49b009064c38823fac17c373fd5f1a390b3ab (patch) | |
tree | 277711c9048d0bb40fb2fe9793b47b5fcd0ca124 /dix | |
parent | c967e4cd8ba50034b6e02d87df10d04edf15ccf6 (diff) |
dix: unbreak --with-dtrace (default) on FreeBSD 11.1+
gmake[2]: Entering directory '/path/to/xserver/dix'
/usr/sbin/dtrace -G -C -o dtrace-dix.o -s ../dix/Xserver.d .libs/atom.o ...
dtrace: failed to compile script ../dix/Xserver.d: line 26: useless declaration
gmake[2]: *** [Makefile:1007: dtrace-dix.o] Error 1
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/Xserver.d | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/Xserver.d b/dix/Xserver.d index f4f229d84..4a233e1f6 100644 --- a/dix/Xserver.d +++ b/dix/Xserver.d @@ -27,6 +27,8 @@ #define string char * #define pid_t uint32_t #define zoneid_t uint32_t +#elif defined(__FreeBSD__) +#define zoneid_t id_t #else #include <sys/types.h> #endif |