[libgtop] Don't include sys/pipe.h on kFreeBSD Defining _KERNEL to include sys/pipe.h subsequently breaks sys
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Don't include sys/pipe.h on kFreeBSD Defining _KERNEL to include sys/pipe.h subsequently breaks sys
- Date: Mon, 28 Apr 2014 21:31:07 +0000 (UTC)
commit d9c01aac4a68357d48bfd03f8146b1ff1f8f5780
Author: Steven Chamberlain <steven pyro eu org>
Date: Tue Apr 29 00:30:07 2014 +0300
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
sysdeps/freebsd/procmap.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/sysdeps/freebsd/procmap.c b/sysdeps/freebsd/procmap.c
index c7ed539..88bd26b 100644
--- a/sysdeps/freebsd/procmap.c
+++ b/sysdeps/freebsd/procmap.c
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]