diff options
author | Daniel Pinto <danielpinto52@gmail.com> | 2021-03-24 22:20:29 +0000 |
---|---|---|
committer | Daniel Pinto <danielpinto52@gmail.com> | 2021-03-24 22:26:39 +0000 |
commit | 272cb803df02179bd6d406d0188df588d445db1b (patch) | |
tree | 837011a7c90bb474582307765b9e672ad6f82311 /src/lib/fs | |
parent | c359c3056b2dbf17987a8955af30884ee438108e (diff) | |
download | tor-272cb803df02179bd6d406d0188df588d445db1b.tar.gz tor-272cb803df02179bd6d406d0188df588d445db1b.zip |
Avoid unused function warnings on libc's without GLOB_ALTDIRFUNC #40354
Diffstat (limited to 'src/lib/fs')
-rw-r--r-- | src/lib/fs/path.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/fs/path.c b/src/lib/fs/path.c index c2fdddb9db..dc1741447e 100644 --- a/src/lib/fs/path.c +++ b/src/lib/fs/path.c @@ -533,6 +533,7 @@ unglob_win32(const char *pattern, int prev_sep, int next_sep) return result; } #elif HAVE_GLOB +#ifdef GLOB_ALTDIRFUNC // prevent warning about unused functions /** Same as opendir but calls sandbox_intern_string before */ static DIR * prot_opendir(const char *name) @@ -571,6 +572,7 @@ wrap_closedir(void *arg) { closedir(arg); } +#endif /* defined(GLOB_ALTDIRFUNC) */ #endif /* defined(HAVE_GLOB) */ /** Return a new list containing the paths that match the pattern |