aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
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>