[Xfce4-commits] <xfce4-session:master> Fix compilation on FreeBSD with polkit (bug #6870).

Nick Schermer noreply at xfce.org
Thu Nov 25 18:22:01 CET 2010


Updating branch refs/heads/master
         to 3e92aac1934e35087bb47913106d280f2d6b150d (commit)
       from 4d3facbf0918b81fdc71a20e8d15d6be6280b356 (commit)

commit 3e92aac1934e35087bb47913106d280f2d6b150d
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Nov 25 18:21:15 2010 +0100

    Fix compilation on FreeBSD with polkit (bug #6870).

 configure.in.in                      |    2 +-
 xfce4-session/xfsm-shutdown-helper.c |   10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/configure.in.in b/configure.in.in
index 0f3fcf5..2189591 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -52,7 +52,7 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS([asm/unistd.h errno.h fcntl.h limits.h \
                   netdb.h pwd.h signal.h stdarg.h sys/param.h sys/resource.h \
                   sys/socket.h sys/time.h sys/wait.h sys/utsname.h time.h \
-                  unistd.h])
+                  unistd.h sys/param.h sys/user.h sys/sysctl.h])
 AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname getpwuid setsid \
                 sigaction strdup sync vfork])
 
diff --git a/xfce4-session/xfsm-shutdown-helper.c b/xfce4-session/xfsm-shutdown-helper.c
index 9f902ad..4a66edd 100644
--- a/xfce4-session/xfsm-shutdown-helper.c
+++ b/xfce4-session/xfsm-shutdown-helper.c
@@ -36,6 +36,15 @@
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+#ifdef HAVE_SYS_USER_H
+#include <sys/user.h>
+#endif
+#ifdef HAVE_SYS_SYSCTL_H
+#include <sys/sysctl.h>
+#endif
 
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
@@ -53,7 +62,6 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif



More information about the Xfce4-commits mailing list