[libgtop] Fix compilation issues in sysdeps/openbsd/netload.c



commit 9e68eb94c38914fc82990c8716767691fb6610de
Author: ToMe25 <ToMe25 gmx de>
Date:   Sun Apr 18 02:45:57 2021 +0200

    Fix compilation issues in sysdeps/openbsd/netload.c

 sysdeps/openbsd/netload.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/sysdeps/openbsd/netload.c b/sysdeps/openbsd/netload.c
index 6591b4f9..60c6ae9a 100644
--- a/sysdeps/openbsd/netload.c
+++ b/sysdeps/openbsd/netload.c
@@ -34,12 +34,16 @@
 
 #include <sys/ioctl.h>
 
-#include <net/if_var.h>
-
 #include <netinet/in.h>
+
+#include <sys/malloc.h>
+
 #define _KERNEL
+#include <net/if_var.h>
+
 #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]