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 /dbus | |
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 'dbus')
-rw-r--r-- | dbus/dbus-sysdeps-util-unix.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c index c4f1b633..baf6b8a2 100644 --- a/dbus/dbus-sysdeps-util-unix.c +++ b/dbus/dbus-sysdeps-util-unix.c @@ -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 |