diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2022-11-02 14:00:14 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2022-11-02 17:28:18 +0000 |
commit | 0718e5868119c9f61a6c6f1fe11de21ff6ba9b9a (patch) | |
tree | 9bc988f72c100ad1712a3fa5cb8ca0bacfd6d37e /utils/config.h | |
parent | 41f0a5a36ecc6381880bd19b4f6838ac22f7d833 (diff) | |
download | netsurf-0718e5868119c9f61a6c6f1fe11de21ff6ba9b9a.tar.gz netsurf-0718e5868119c9f61a6c6f1fe11de21ff6ba9b9a.tar.bz2 |
utils: Use fstatat and unlinkat if supported
Diffstat (limited to 'utils/config.h')
-rw-r--r-- | utils/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/config.h b/utils/config.h index 0227f4177..f54326dba 100644 --- a/utils/config.h +++ b/utils/config.h @@ -146,6 +146,15 @@ char *realpath(const char *path, char *resolved_path); #undef HAVE_SCANDIR #endif +#define HAVE_DIRFD +#define HAVE_UNLINKAT +#define HAVE_FSTATAT +#if (defined(_WIN32) || defined(__riscos__) || defined(__HAIKU__) || defined(__BEOS__) || defined(__amigaos4__) || defined(__AMIGA__) || defined(__MINT__)) +#undef HAVE_DIRFD +#undef HAVE_UNLINKAT +#undef HAVE_FSTATAT +#endif + #define HAVE_REGEX #if (defined(__serenity__)) #undef HAVE_REGEX |