mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-03 10:20:17 +01:00
dbus-sysdeps-util-unix.c: Avoid including sys/syslimits.h
This header is GCC specific header that on my system just contains `#include_next <limits.h>`. FreeBSD also provides this header but it contains a `#warning` that it should not be used. Replace the one use with `#include <limit.h>` and drop the configure checks.
This commit is contained in:
parent
82f5c96644
commit
a214ed824d
5 changed files with 1 additions and 10 deletions
|
|
@ -25,7 +25,6 @@ check_include_file(sys/random.h HAVE_SYS_RANDOM_H)
|
|||
check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
|
||||
check_include_file(sys/syscall.h HAVE_SYS_SYSCALL_H)
|
||||
check_include_file(sys/prctl.h HAVE_SYS_PRCTL_H)
|
||||
check_include_file(sys/syslimits.h HAVE_SYS_SYSLIMITS_H) # dbus-sysdeps-unix.c
|
||||
check_include_file(sys/time.h HAVE_SYS_TIME_H)# dbus-sysdeps-win.c
|
||||
check_include_file(ws2tcpip.h HAVE_WS2TCPIP_H)# dbus-sysdeps-win.c
|
||||
check_include_file(unistd.h HAVE_UNISTD_H) # dbus-sysdeps-util-win.c
|
||||
|
|
|
|||
|
|
@ -124,9 +124,6 @@
|
|||
#cmakedefine HAVE_SYS_RANDOM_H 1
|
||||
#cmakedefine HAVE_SYS_RESOURCE_H 1
|
||||
|
||||
/* Define to 1 if you have sys/syslimits.h */
|
||||
#cmakedefine HAVE_SYS_SYSLIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have sys/time.h */
|
||||
#cmakedefine HAVE_SYS_TIME_H 1
|
||||
|
||||
|
|
|
|||
|
|
@ -423,7 +423,6 @@ sys/prctl.h
|
|||
sys/random.h
|
||||
sys/resource.h
|
||||
sys/syscall.h
|
||||
sys/syslimits.h
|
||||
sys/time.h
|
||||
unistd.h
|
||||
winsock2.h
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@
|
|||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
#include <sys/resource.h>
|
||||
|
|
@ -56,10 +57,6 @@
|
|||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_SYSLIMITS_H
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYSTEMD
|
||||
#include <systemd/sd-daemon.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -633,7 +633,6 @@ check_headers = [
|
|||
'sys/random.h',
|
||||
'sys/resource.h',
|
||||
'sys/syscall.h',
|
||||
'sys/syslimits.h',
|
||||
'sys/time.h',
|
||||
'unistd.h',
|
||||
'ws2tcpip.h',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue