Move fcntl.h to internal defines and check for O_CLOEXEC.

This commit is contained in:
Milan Broz
2020-02-21 10:10:11 +01:00
parent 90e04b0046
commit b5fbd682f2
18 changed files with 5 additions and 21 deletions

View File

@@ -20,7 +20,6 @@
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <sys/select.h>
@@ -28,10 +27,6 @@
#include "libcryptsetup.h"
#include "internal.h"
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
static int random_initialised = 0;
#define URANDOM_DEVICE "/dev/urandom"