aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-12 21:22:54 +0200
committerMattias Andrée <m@maandree.se>2026-05-12 21:22:54 +0200
commitfc0b70a60407e1e65610712a702f8286db3a328c (patch)
tree05f42c75245c1160c4bf7a7d391de7a16b109c83 /common.h
parentMisc (diff)
downloadlibrecrypt-fc0b70a60407e1e65610712a702f8286db3a328c.tar.gz
librecrypt-fc0b70a60407e1e65610712a702f8286db3a328c.tar.bz2
librecrypt-fc0b70a60407e1e65610712a702f8286db3a328c.tar.xz
Work on test code
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index c6bea51..6c44769 100644
--- a/common.h
+++ b/common.h
@@ -45,6 +45,11 @@
#endif
+#if defined(POSIX_CLOSE_RESTART) && !defined(__linux__)
+# define close(fd) posix_close(fd, 0)
+#endif
+
+
/**
* Used for literal commas in macro calls
*/
@@ -447,6 +452,7 @@ int librecrypt_check_settings_(const char *settings, size_t len, const char *fmt
# endif
# include <sys/resource.h>
# include <sys/types.h>
+# include <sys/uio.h>
# include <sys/wait.h>
# include <setjmp.h>
# include <signal.h>