summaryrefslogtreecommitdiff
path: root/src/tipideed
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 /src/tipideed
parentd91a79d86ffb544d49f5f04ca49e5d980188934d (diff)
downloadtipidee-895c822c40a842fe021462a373542fe52ae93a86.tar.xz
Some portability fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed')
-rw-r--r--src/tipideed/harden.c3
-rw-r--r--src/tipideed/send_file.c1
2 files changed, 3 insertions, 1 deletions
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"