]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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:43:07 +0000 (16:43 +0200)
* `<sys/fcntl.h>` is not specified in POSIX

(cherry picked from commit f8d54f7810aeea5ff27a5db03e1aab7ea54c8268)
(cherry picked from commit d57080b6229b45802fed997bd53add0df4c7ec00)
(cherry picked from commit 43498df87dbf3cfca2198bdb0cbd832be1ff4738d)

src/basic/fileio.h

index 0886354cbcf8a9348b6cb245fa28dfab461ab9c8..ade18e6117e9af11160fd5ec0bb5a7178c29f03e 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"