[libgtop] Adjust header inclusion on OpenBSD
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Adjust header inclusion on OpenBSD
- Date: Thu, 23 Jan 2014 09:32:53 +0000 (UTC)
commit 07d2816d5b39325bd7381024a88c61b7c56f7b62
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Thu Jan 23 10:30:53 2014 +0100
Adjust header inclusion on OpenBSD
- fixup header inclusion after netinet/in_var.h was made private
- configure fails to define HAVE_NET_IF_VAR_H
sysdeps/openbsd/netload.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sysdeps/openbsd/netload.c b/sysdeps/openbsd/netload.c
index 773d81c..c172bba 100644
--- a/sysdeps/openbsd/netload.c
+++ b/sysdeps/openbsd/netload.c
@@ -36,12 +36,12 @@
#include <sys/ioctl.h>
-#ifdef HAVE_NET_IF_VAR_H
#include <net/if_var.h>
-#endif
#include <netinet/in.h>
+#define _KERNEL
#include <netinet/in_var.h>
+#undef _KERNEL
#include <netinet6/in6_var.h>
static const unsigned long _glibtop_sysdeps_netload =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]