diff options
author | Brad King <brad.king@kitware.com> | 2015-10-21 18:14:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-22 14:18:26 (GMT) |
commit | 61a0251e824559b27e751ce7ff0be72b9bb8ec69 (patch) | |
tree | 9126e6aa0572397c88e54174aaa62549d68e26be | |
parent | 832fe4b133f47781f4e08df1f83fdc4e3e7aa06b (diff) | |
download | CMake-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.
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_random.c | 4 |
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. |