libarchive: Define O_CLOEXEC when missing
Do this in archive_random.c as we do in several other sources already.
This commit is contained in:
parent
832fe4b133
commit
61a0251e82
|
@ -62,6 +62,10 @@ static void arc4random_buf(void *, size_t);
|
||||||
#include <wincrypt.h>
|
#include <wincrypt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef O_CLOEXEC
|
||||||
|
#define O_CLOEXEC 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Random number generator function.
|
* Random number generator function.
|
||||||
* This simply calls arc4random_buf function if the platform provides it.
|
* This simply calls arc4random_buf function if the platform provides it.
|
||||||
|
|
Loading…
Reference in New Issue