systemd: include <fcntl.h> instead of <sys/fctnl.h>

On alpine/musl we get a compiler warning:

    CC       shared/systemd/src/basic/libnm_systemd_shared_la-env-file.lo
  In file included from ../shared/systemd/src/basic/fileio.h:9,
                   from ../shared/systemd/src/basic/env-file.c:10:
  /usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
      1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
        |  ^~~~~~~
This commit is contained in:
Thomas Haller
2020-12-10 21:42:23 +01:00
parent d38b5d92ee
commit d828f5b021

View File

@@ -6,7 +6,11 @@
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h> #include <sys/stat.h>
#if 0 /* NM_IGNORED */
#include <sys/fcntl.h> #include <sys/fcntl.h>
#else /* NM_IGNORED */
#include <fcntl.h>
#endif /* NM_IGNORED */
#include <sys/types.h> #include <sys/types.h>
#include "macro.h" #include "macro.h"