From 895c822c40a842fe021462a373542fe52ae93a86 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 21 Sep 2023 08:27:16 +0000 Subject: Some portability fixes Signed-off-by: Laurent Bercot --- src/libtipidee/tipidee_response_header_lastmodified.c | 3 ++- src/tipideed/harden.c | 3 ++- src/tipideed/send_file.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libtipidee/tipidee_response_header_lastmodified.c b/src/libtipidee/tipidee_response_header_lastmodified.c index 3b3caa6..e946445 100644 --- a/src/libtipidee/tipidee_response_header_lastmodified.c +++ b/src/libtipidee/tipidee_response_header_lastmodified.c @@ -2,10 +2,11 @@ #include -#include #include #include +#include + #include size_t tipidee_response_header_lastmodified (char *s, size_t max, struct stat const *st) diff --git a/src/tipideed/harden.c b/src/tipideed/harden.c index 516eefb..46db2f5 100644 --- a/src/tipideed/harden.c +++ b/src/tipideed/harden.c @@ -1,7 +1,8 @@ /* ISC license. */ +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE #include -#include #include #include diff --git a/src/tipideed/send_file.c b/src/tipideed/send_file.c index 2ee122a..23a0373 100644 --- a/src/tipideed/send_file.c +++ b/src/tipideed/send_file.c @@ -87,6 +87,7 @@ void send_file (int fd, uint64_t n, char const *fn) #include #include #include +#include #include "tipideed-internal.h" -- cgit v1.2.3