Commit 13c32916 authored by Baruch Siach's avatar Baruch Siach Committed by Guillem Jover

flopen: Add missing <fcntl.h> include

Commit 993828d8 (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 993828d8Submitted-also-by: 's avatarparazyd <>
Signed-off-by: 's avatarBaruch Siach <>
Signed-off-by: Guillem Jover's avatarGuillem Jover <>
parent 8e834cd0
......@@ -32,6 +32,7 @@
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <unistd.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment