summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandry Breuil <landry@rhaalovely.net>2011-03-07 20:51:31 +0100
committerRichard Hughes <richard@hughsie.com>2011-03-21 18:40:13 +0000
commita65fdfc1565cb7174821f7b8a30368ea582e6fe9 (patch)
treecb0622cc05bc4652dbcef3856191784b2dde3ebf
parent20a3759ab90fd75acf7941bf5a2b57ad7e9e5c52 (diff)
trivial: move #includes
Signed-off-by: Richard Hughes <richard@hughsie.com>
-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)