summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-21 08:27:16 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-21 08:27:16 +0000
commit895c822c40a842fe021462a373542fe52ae93a86 (patch)
treeb34a8db4e80e00c644eaa424c87f9ea4b42b69c7
parentd91a79d86ffb544d49f5f04ca49e5d980188934d (diff)
downloadtipidee-895c822c40a842fe021462a373542fe52ae93a86.tar.xz
Some portability fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/libtipidee/tipidee_response_header_lastmodified.c3
-rw-r--r--src/tipideed/harden.c3
-rw-r--r--src/tipideed/send_file.c1
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 <skalibs/bsdsnowflake.h>
-#include <sys/stat.h>
#include <errno.h>
#include <string.h>
+#include <skalibs/stat.h>
+
#include <tipidee/response.h>
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 <skalibs/sysdeps.h>
-#include <skalibs/nonposix.h>
#include <unistd.h>
#include <errno.h>
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 <skalibs/buffer.h>
#include <skalibs/strerr.h>
#include <skalibs/tai.h>
+#include <skalibs/unix-timed.h>
#include "tipideed-internal.h"