skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit eff310d272f9e3915c1d5fa93f635ec8ebccaed6
parent 825b80eaa311b0aec4c00614f38f3eb63949d5a7
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Tue, 16 Apr 2024 13:06:16 +0000

 Fix gol header

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Mpackage/deps.mak | 2+-
Msrc/include/skalibs/gol.h | 4++--
Msrc/libstddjb/fd_sync.c | 8+++++---
3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/package/deps.mak b/package/deps.mak @@ -337,7 +337,7 @@ src/libstddjb/fd_readv.o src/libstddjb/fd_readv.lo: src/libstddjb/fd_readv.c src src/libstddjb/fd_recv.o src/libstddjb/fd_recv.lo: src/libstddjb/fd_recv.c src/include/skalibs/allreadwrite.h src/libstddjb/fd_send.o src/libstddjb/fd_send.lo: src/libstddjb/fd_send.c src/include/skalibs/allreadwrite.h src/libstddjb/fd_shutdown.o src/libstddjb/fd_shutdown.lo: src/libstddjb/fd_shutdown.c src/include/skalibs/djbunix.h src/include/skalibs/nonposix.h -src/libstddjb/fd_sync.o src/libstddjb/fd_sync.lo: src/libstddjb/fd_sync.c src/include/skalibs/djbunix.h +src/libstddjb/fd_sync.o src/libstddjb/fd_sync.lo: src/libstddjb/fd_sync.c src/include/skalibs/djbunix.h src/include/skalibs/nonposix.h src/libstddjb/fd_unlock.o src/libstddjb/fd_unlock.lo: src/libstddjb/fd_unlock.c src/include/skalibs/djbunix.h src/include/skalibs/fcntl.h src/libstddjb/fd_write.o src/libstddjb/fd_write.lo: src/libstddjb/fd_write.c src/include/skalibs/allreadwrite.h src/libstddjb/fd_writev.o src/libstddjb/fd_writev.lo: src/libstddjb/fd_writev.c src/include/skalibs/allreadwrite.h diff --git a/src/include/skalibs/gol.h b/src/include/skalibs/gol.h @@ -9,7 +9,7 @@ #include <skalibs/uint64.h> -typedef struct gol_bool_s gol_bool, gol_bool ; +typedef struct gol_bool_s gol_bool, *gol_bool_ref ; struct gol_bool_s { char const *lo ; @@ -18,7 +18,7 @@ struct gol_bool_s uint64_t mask ; } ; -typedef struct gol_arg_s gol_arg, gol_arg_ref ; +typedef struct gol_arg_s gol_arg, *gol_arg_ref ; struct gol_arg_s { char const *lo ; diff --git 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 ; }