Use correct `<fcntl.h>` include
authorDavid Seifert <soap@gentoo.org>
Mon, 2 Aug 2021 10:41:38 +0000 (12:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Aug 2021 14:40:58 +0000 (16:40 +0200)
* `<sys/fcntl.h>` is not specified in POSIX

(cherry picked from commit f8d54f7810aeea5ff27a5db03e1aab7ea54c8268)

src/basic/fileio.h

index c28b17fef52691c79fe54f10f545ee3225882694..9bd2037f5bc715dd519e3d8321485e9670e66f4f 100644 (file)
@@ -2,11 +2,11 @@
 #pragma once
 
 #include <dirent.h>
+#include <fcntl.h>
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <sys/stat.h>
-#include <sys/fcntl.h>
 #include <sys/types.h>
 
 #include "macro.h"