summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-21 18:14:54 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-22 14:18:26 (GMT)
commit61a0251e824559b27e751ce7ff0be72b9bb8ec69 (patch)
tree9126e6aa0572397c88e54174aaa62549d68e26be /Utilities/cmlibarchive
parent832fe4b133f47781f4e08df1f83fdc4e3e7aa06b (diff)
downloadCMake-61a0251e824559b27e751ce7ff0be72b9bb8ec69.zip
CMake-61a0251e824559b27e751ce7ff0be72b9bb8ec69.tar.gz
CMake-61a0251e824559b27e751ce7ff0be72b9bb8ec69.tar.bz2
libarchive: Define O_CLOEXEC when missing
Do this in archive_random.c as we do in several other sources already.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_random.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_random.c b/Utilities/cmlibarchive/libarchive/archive_random.c
index 57c49d5..7891077 100644
--- a/Utilities/cmlibarchive/libarchive/archive_random.c
+++ b/Utilities/cmlibarchive/libarchive/archive_random.c
@@ -62,6 +62,10 @@ static void arc4random_buf(void *, size_t);
#include <wincrypt.h>
#endif
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
/*
* Random number generator function.
* This simply calls arc4random_buf function if the platform provides it.