diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index b9651205e60..c153bc4448d 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h index 6920fd99ba5..36ec422f2c0 100644 --- a/src/basic/socket-util.h +++ b/src/basic/socket-util.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index 2321a91e7bd..d32c51c3cec 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -528,7 +528,7 @@ static int dispatch_http_event(sd_event_source *event, void *userdata) { MHDDaemonWrapper *d = userdata; int r; - MHD_UNSIGNED_LONG_LONG timeout = ULONG_LONG_MAX; + MHD_UNSIGNED_LONG_LONG timeout = ULLONG_MAX; assert(d); @@ -538,7 +538,7 @@ static int dispatch_http_event(sd_event_source *event, return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "MHD_run failed!"); if (MHD_get_timeout(d->daemon, &timeout) == MHD_NO) - timeout = ULONG_LONG_MAX; + timeout = ULLONG_MAX; r = sd_event_source_set_time(d->timer_event, timeout); if (r < 0) { diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index 35b2c2aa463..9623fe9ea29 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -212,7 +212,7 @@ static int sync_making_progress(unsigned long long *prev_dirty) { } static void sync_with_progress(void) { - unsigned long long dirty = ULONG_LONG_MAX; + unsigned long long dirty = ULLONG_MAX; unsigned checks; pid_t pid; int r; diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index cab1b5ac0c5..a0a7ac0f9e0 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include "sd-event.h"