mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 18:20:07 +01:00
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:
parent
d38b5d92ee
commit
d828f5b021
1 changed files with 4 additions and 0 deletions
|
|
@ -6,7 +6,11 @@
|
|||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
#if 0 /* NM_IGNORED */
|
||||
#include <sys/fcntl.h>
|
||||
#else /* NM_IGNORED */
|
||||
#include <fcntl.h>
|
||||
#endif /* NM_IGNORED */
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "macro.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue