From 61a0251e824559b27e751ce7ff0be72b9bb8ec69 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 21 Oct 2015 14:14:54 -0400 Subject: libarchive: Define O_CLOEXEC when missing Do this in archive_random.c as we do in several other sources already. --- Utilities/cmlibarchive/libarchive/archive_random.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #endif +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif + /* * Random number generator function. * This simply calls arc4random_buf function if the platform provides it. -- cgit v0.12