diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sudo_compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sudo_compat.h b/include/sudo_compat.h index a9212189e..87602154e 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -484,6 +484,11 @@ sudo_dso_public size_t sudo_strnlen(const char *str, size_t maxlen); # undef strnlen # define strnlen(_a, _b) sudo_strnlen((_a), (_b)) #endif /* HAVE_STRNLEN */ +#ifndef HAVE_FCHOWNAT +sudo_dso_public int sudo_fchownat(int dfd, const char *path, uid_t uid, gid_t gid, int flag); +# undef fchownat +# define fchownat(_a, _b, _c, _d, _e) sudo_fchownat((_a), (_b), (_c), (_d), (_e)) +#endif /* HAVE_FCHOWNAT */ #ifndef HAVE_MEMRCHR sudo_dso_public void *sudo_memrchr(const void *s, int c, size_t n); # undef memrchr |