diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-01-11 18:03:29 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-01-14 14:01:57 +0100 |
commit | 3fd070e089569b1f68f8baddf1a4373dd7c02cc8 (patch) | |
tree | 7e36389ec9244bd6fb6909c58318c50cda366329 /tools/fakeroot | |
parent | 6c90999e2e0dee6e5e0322b89e8e6fb6f76aecc9 (diff) | |
download | upstream-3fd070e089569b1f68f8baddf1a4373dd7c02cc8.tar.gz upstream-3fd070e089569b1f68f8baddf1a4373dd7c02cc8.tar.bz2 upstream-3fd070e089569b1f68f8baddf1a4373dd7c02cc8.zip |
tools/fakeroot: fix build regression on macOS
AT_EMPTY_PATH and AT_NO_AUTOMOUNT does not exist there
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/fakeroot')
-rw-r--r-- | tools/fakeroot/patches/100-portability.patch | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tools/fakeroot/patches/100-portability.patch b/tools/fakeroot/patches/100-portability.patch index 315a9e16bf..7ba12996be 100644 --- a/tools/fakeroot/patches/100-portability.patch +++ b/tools/fakeroot/patches/100-portability.patch @@ -25,7 +25,23 @@ #ifdef HAVE_SYS_ACL_H #include <sys/acl.h> #endif /* HAVE_SYS_ACL_H */ -@@ -1911,7 +1918,7 @@ ssize_t fremovexattr(int fd, const char +@@ -188,6 +195,15 @@ extern int unsetenv (const char *name); + #undef __lxstat64 + #undef _FILE_OFFSET_BITS + ++ ++#ifndef AT_EMPTY_PATH ++#define AT_EMPTY_PATH 0 ++#endif ++ ++#ifndef AT_NO_AUTOMOUNT ++#define AT_NO_AUTOMOUNT 0 ++#endif ++ + /* + // next_wrap_st: + // this structure is used in next_wrap, which is defined in +@@ -1911,7 +1927,7 @@ ssize_t fremovexattr(int fd, const char } #endif /* HAVE_FREMOVEXATTR */ @@ -34,7 +50,7 @@ if (fakeroot_disabled) return next_setpriority(which, who, prio); next_setpriority(which, who, prio); -@@ -2520,3 +2527,19 @@ int sysinfo(int command, char *buf, long +@@ -2520,3 +2536,19 @@ int sysinfo(int command, char *buf, long } } #endif |