summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_sync.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-16 13:06:16 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-16 13:06:16 +0000
commiteff310d272f9e3915c1d5fa93f635ec8ebccaed6 (patch)
tree700faef29422badd6de104bcb583a06af05a60d9 /src/libstddjb/fd_sync.c
parent825b80eaa311b0aec4c00614f38f3eb63949d5a7 (diff)
downloadskalibs-eff310d272f9e3915c1d5fa93f635ec8ebccaed6.tar.xz
Fix gol header
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/fd_sync.c')
-rw-r--r--src/libstddjb/fd_sync.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libstddjb/fd_sync.c b/src/libstddjb/fd_sync.c
index e978151..c4d359b 100644
--- a/src/libstddjb/fd_sync.c
+++ b/src/libstddjb/fd_sync.c
@@ -1,14 +1,16 @@
/* ISC license. */
+#include <skalibs/nonposix.h> /* lol MacOS */
+
#include <unistd.h>
#include <errno.h>
+
#include <skalibs/djbunix.h>
int fd_sync (int fd)
{
int r ;
- do
- r = fsync(fd) ;
- while ((r == -1) && (errno == EINTR)) ;
+ do r = fsync(fd) ;
+ while (r == -1 && errno == EINTR) ;
return r ;
}