Merge pull request #12593 from AdrianBunk/master

Small changes from Yocto/musl builds
This commit is contained in:
Yu Watanabe 2019-05-18 10:25:59 +09:00 committed by GitHub
commit c9f0f21e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <sys/inotify.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

View file

@ -9,6 +9,7 @@
#include <netinet/in.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>

View file

@ -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) {

View file

@ -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;

View file

@ -7,6 +7,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "sd-event.h"