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 11:08:14 +0000 (13:08 +0200)
* `<sys/fcntl.h>` is not specified in POSIX

(cherry picked from commit f8d54f7810aeea5ff27a5db03e1aab7ea54c8268)
(cherry picked from commit d57080b6229b45802fed997bd53add0df4c7ec00)
(cherry picked from commit 4337053b230b6a0f00a5623d1129d5dcf4a178bd)
(cherry picked from commit 126aa3cfe5be570213bcbf699d9573cd34c5bff7)

src/basic/fileio.h

index 7d58fa7cfc24d51033edb97a3f7a4fec6d6aa5f1..5fb72a7c382820ca60819dd7c22a6c119a503b65 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"