From: Brad King Date: Wed, 21 Oct 2015 18:16:21 +0000 (-0400) Subject: Define O_CLOEXEC when missing in archive_random.c X-Git-Tag: v3.1.900a~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=345be3839ebc45a15c02e1db5abd0fa3fa70e403;p=thirdparty%2Flibarchive.git Define O_CLOEXEC when missing in archive_random.c We do this several other sources already. --- 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.