summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-06-05 19:21:46 +0300
committerGuillem Jover <guillem@hadrons.org>2018-06-17 20:23:48 +0200
commit13c32916b4baab58d93940d57fea9ff0777f1931 (patch)
tree2287e2f0e76872d91e6577494900fb4e4a3564da /src
parent8e834cd0686794ce7f70cb915ddd754e1d1ce726 (diff)
flopen: Add missing <fcntl.h> include
Commit 993828d84ee (Add flopenat() function from FreeBSD) dropped the fcntl.h header. This breaks the build with musl libc: flopen.c: In function ‘vflopenat’: flopen.c:60:14: error: ‘O_CREAT’ undeclared (first use in this function) if (flags & O_CREAT) { ^~~~~~~ Restore the fcntl.h header include to fix the build. Fixes: commit 993828d84eed0468c6c15b2818e534e6b134b8e4 Submitted-also-by: parazyd <parazyd@dyne.org> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Guillem Jover <guillem@hadrons.org>
Diffstat (limited to 'src')
-rw-r--r--src/flopen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flopen.c b/src/flopen.c
index b9972c9..ff20d07 100644
--- a/src/flopen.c
+++ b/src/flopen.c
@@ -32,6 +32,7 @@
#include <sys/stat.h>
#include <errno.h>
+#include <fcntl.h>
#include <stdarg.h>
#include <unistd.h>