diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2022-08-09 10:17:57 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-08-10 11:18:20 +0000 |
commit | a214ed824d257b5ab3ea81c8286395e65df81423 (patch) | |
tree | 5e822a6b8ef35105f05595a9f8b8d989ba495ce9 /cmake | |
parent | 82f5c966442a455edf0bae4fbc17e35abdf7db5e (diff) | |
download | dbus-a214ed824d257b5ab3ea81c8286395e65df81423.tar.gz |
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.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ConfigureChecks.cmake | 1 | ||||
-rw-r--r-- | cmake/config.h.cmake | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 6ce85204..bb2f021e 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -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 diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake index b8d98fb2..022d190e 100644 --- a/cmake/config.h.cmake +++ b/cmake/config.h.cmake @@ -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 |