[Xfce4-commits] <xfce4-power-manager:master> Fix compilation on FREEBSD.
Ali Abdallah
noreply at xfce.org
Fri Jan 7 12:28:03 CET 2011
Updating branch refs/heads/master
to 50f8c1aa194be51b2f12b8be2d12dcf9911ee2e1 (commit)
from 8977b9f51e932d6034a0e25055096f070bc523fc (commit)
commit 50f8c1aa194be51b2f12b8be2d12dcf9911ee2e1
Author: Ali Abdallah <aliov at xfce.org>
Date: Fri Jan 7 12:28:20 2011 +0100
Fix compilation on FREEBSD.
src/xfpm-polkit.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/xfpm-polkit.c b/src/xfpm-polkit.c
index f8f7f9a..0460cf1 100644
--- a/src/xfpm-polkit.c
+++ b/src/xfpm-polkit.c
@@ -30,6 +30,18 @@
#include <unistd.h>
#endif
+#include <sys/types.h>
+
+#ifndef HAVE_FREEBSD
+#include <sys/stat.h>
+#else
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#include <sys/user.h>
+#endif
+
+#include <errno.h>
+
#include <dbus/dbus-glib.h>
#include "xfpm-polkit.h"
More information about the Xfce4-commits
mailing list