From: Baruch Siach Date: Tue, 5 Jun 2018 16:21:46 +0000 (+0300) Subject: flopen: Add missing include X-Git-Tag: 0.10.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13c32916b4baab58d93940d57fea9ff0777f1931;p=thirdparty%2Flibbsd.git flopen: Add missing 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 Signed-off-by: Baruch Siach Signed-off-by: Guillem Jover --- 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 #include +#include #include #include