summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/havegecmd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/havegecmd.h b/src/havegecmd.h
index 0bc74fd..e928265 100644
--- a/src/havegecmd.h
+++ b/src/havegecmd.h
@@ -33,6 +33,14 @@ extern "C" {
#define HAVEGED_SOCKET_PATH "\0/sys/entropy/haveged"
#define MAGIC_CHROOT 'R'
+
+#ifndef SOCK_CLOEXEC
+#define SOCK_CLOEXEC 0
+#endif
+
+#ifndef SOCK_NONBLOCK
+#define SOCK_NONBLOCK 0
+#endif
/**
* Open and listen on a UNIX socket to get command from there