mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
musl: avoid conflict between fcntl.h and basic-forward.h
glibc defines AT_FDCWD as -100, but musl defines it as (-100). In basic-forward.h, we also define AT_FDCWD as -100, hence musl's fcntl.h conflicts with forward.h. This is for avoiding the conflict.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
fe6e6cb6a0
commit
43e4c91fc0
@@ -117,7 +117,12 @@ typedef struct SocketAddress SocketAddress;
|
||||
/* We duplicate various commonly used constants here so we can keep most static inline functions without
|
||||
* having to include the full header that provides these constants. */
|
||||
|
||||
/* glibc defines AT_FDCWD as -100, but musl defines it as (-100). */
|
||||
#ifdef __GLIBC__
|
||||
#define AT_FDCWD -100
|
||||
#else
|
||||
#define AT_FDCWD (-100)
|
||||
#endif
|
||||
#define AT_EMPTY_PATH 0x1000
|
||||
#define AT_SYMLINK_FOLLOW 0x400
|
||||
#define AT_SYMLINK_NOFOLLOW 0x100
|
||||
|
||||
Reference in New Issue
Block a user