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:
Steven Chamberlain
2014-04-29 00:30:07 +03:00
committed by Robert Roth
parent 82c28b2ad2
commit c1eeca64ec

View File

@@ -38,10 +38,7 @@
#include <sys/vnode.h>
#undef _KVM_VNODE
#define _KERNEL
#include <sys/pipe.h>
#include <sys/conf.h>
#undef _KERNEL
#if (__FreeBSD_version >= 800038) || (__FreeBSD_kernel_version >= 800038)
#define _WANT_FILE
#include <sys/file.h>