Commit f1568f5a authored by Romain Bouvier's avatar Romain Bouvier
Browse files

Remove sys/sysctl.h on linux platform

- This include is deprecated on linux since ages in glibc and can be removed.
parent 2d9f89f8
......@@ -68,7 +68,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h fcntl.h \
netdb.h signal.h stdarg.h sys/resource.h \
sys/socket.h sys/time.h sys/wait.h sys/utsname.h time.h \
unistd.h sys/sysctl.h math.h sys/types.h])
unistd.h math.h sys/types.h])
AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname setsid strdup])
# Checks for typedefs, structures, and compiler characteristics.
......
......@@ -53,9 +53,6 @@
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#include <gio/gio.h>
#include <libxfce4util/libxfce4util.h>
......@@ -76,6 +73,9 @@
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define __BACKEND_TYPE_BSD__ 1
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#endif
#define POLKIT_AUTH_SHUTDOWN_XFSM "org.xfce.session.xfsm-shutdown-helper"
......
......@@ -51,9 +51,6 @@
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#include <gio/gio.h>
#include <libxfce4util/libxfce4util.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment