summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openbsd/up-apm-native.h4
-rw-r--r--src/openbsd/up-native.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/openbsd/up-apm-native.h b/src/openbsd/up-apm-native.h
index c0d5584..b07d17b 100644
--- a/src/openbsd/up-apm-native.h
+++ b/src/openbsd/up-apm-native.h
@@ -16,6 +16,10 @@
/* sensor struct defs */
#include <sys/sensors.h>
+/* sysctl() */
+#include <sys/param.h>
+#include <sys/sysctl.h>
+
#include <glib.h>
#include <glib-object.h>
diff --git a/src/openbsd/up-native.c b/src/openbsd/up-native.c
index b97f553..0681b8b 100644
--- a/src/openbsd/up-native.c
+++ b/src/openbsd/up-native.c
@@ -1,9 +1,6 @@
#include "up-apm-native.h"
#include "up-native.h"
-#include <sys/param.h>
-#include <sys/sysctl.h>
-#include <errno.h>
/* XXX why does this macro needs to be in the .c ? */
G_DEFINE_TYPE (UpApmNative, up_apm_native, G_TYPE_OBJECT)