From 345be3839ebc45a15c02e1db5abd0fa3fa70e403 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 21 Oct 2015 14:16:21 -0400 Subject: [PATCH] Define O_CLOEXEC when missing in archive_random.c We do this several other sources already. --- libarchive/archive_random.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libarchive/archive_random.c b/libarchive/archive_random.c index b162ff3ae..f4d42547f 100644 --- a/libarchive/archive_random.c +++ b/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. -- 2.47.2