Don't include sys/pipe.h on kFreeBSD
Defining _KERNEL to include sys/pipe.h subsequently breaks sys/conf.h; since sys/pipe.h is not meant to be used in userland, and libgtop2 builds anyway on kFreeBSD without it, don't include it. https://bugzilla.gnome.org/show_bug.cgi?id=674067
This commit is contained in:
committed by
Robert Roth
parent
82c28b2ad2
commit
c1eeca64ec
@@ -38,10 +38,7 @@
|
|||||||
#include <sys/vnode.h>
|
#include <sys/vnode.h>
|
||||||
#undef _KVM_VNODE
|
#undef _KVM_VNODE
|
||||||
|
|
||||||
#define _KERNEL
|
|
||||||
#include <sys/pipe.h>
|
|
||||||
#include <sys/conf.h>
|
#include <sys/conf.h>
|
||||||
#undef _KERNEL
|
|
||||||
#if (__FreeBSD_version >= 800038) || (__FreeBSD_kernel_version >= 800038)
|
#if (__FreeBSD_version >= 800038) || (__FreeBSD_kernel_version >= 800038)
|
||||||
#define _WANT_FILE
|
#define _WANT_FILE
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
|
Reference in New Issue
Block a user