core: Always include fcntl

Fixes #833
This commit is contained in:
Wim Taymans 2021-03-27 12:51:38 +01:00
parent 54e06d9df0
commit f0a2b6d01f

View file

@ -26,6 +26,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#ifndef ENODATA #ifndef ENODATA
#define ENODATA 9919 #define ENODATA 9919
#endif #endif
@ -37,7 +38,6 @@
#ifndef HAVE_GETRANDOM #ifndef HAVE_GETRANDOM
# ifdef __FreeBSD__ # ifdef __FreeBSD__
# include <sys/param.h> # include <sys/param.h>
# include <fcntl.h>
// FreeBSD versions < 12 do not have getrandom() syscall // FreeBSD versions < 12 do not have getrandom() syscall
// Give a poor-man implementation here // Give a poor-man implementation here
// Can be removed after September 30, 2021 // Can be removed after September 30, 2021