]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-sysdeps-util-unix.c: Avoid including sys/syslimits.h
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 9 Aug 2022 10:17:57 +0000 (10:17 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Aug 2022 11:18:20 +0000 (11:18 +0000)
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.

cmake/ConfigureChecks.cmake
cmake/config.h.cmake
configure.ac
dbus/dbus-sysdeps-util-unix.c
meson.build

index 6ce8520410a30b8ead2245d6f4130987746a351b..bb2f021e655e1814784974bb4edc9b8a94b41895 100644 (file)
@@ -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
index b8d98fb2f91ecc172bcb2cf0b32add32cd05ec4b..022d190e082c4501d2e9f3a604dbae8e3aa731ca 100644 (file)
 #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
 
index 238b1ac5c62e453a329d880c1f5d26639cf5a333..033a1f8ee5ef511fdd0bd35f969b35daf877702c 100644 (file)
@@ -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
index c4f1b6339cd994f84d17ee4f91c20552ace18222..baf6b8a2f3d46afc421c542b2cea17332d17b9df 100644 (file)
@@ -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>
 #include <sys/prctl.h>
 #endif
 
-#ifdef HAVE_SYS_SYSLIMITS_H
-#include <sys/syslimits.h>
-#endif
-
 #ifdef HAVE_SYSTEMD
 #include <systemd/sd-daemon.h>
 #endif
index 034f0ce77ab95e267008129a8b190c7bb27f883a..5bc5fb9fcb49c711c9c234271d1fc4ad4ad82b73 100644 (file)
@@ -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',