mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge remote-tracking branch 'tor-gitlab/mr/354'
This commit is contained in:
commit
62614f0b3f
4
changes/bug40354
Normal file
4
changes/bug40354
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes (compilation):
|
||||||
|
- Fix a compilation warning about unused functions when building with
|
||||||
|
a libc that lacks the GLOB_ALTDIRFUNC constant. Fixes bug 40354;
|
||||||
|
bugfix on 0.4.5.1-alpha. Patch by Daniel Pinto.
|
@ -533,6 +533,7 @@ unglob_win32(const char *pattern, int prev_sep, int next_sep)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#elif HAVE_GLOB
|
#elif HAVE_GLOB
|
||||||
|
#ifdef GLOB_ALTDIRFUNC // prevent warning about unused functions
|
||||||
/** Same as opendir but calls sandbox_intern_string before */
|
/** Same as opendir but calls sandbox_intern_string before */
|
||||||
static DIR *
|
static DIR *
|
||||||
prot_opendir(const char *name)
|
prot_opendir(const char *name)
|
||||||
@ -571,6 +572,7 @@ wrap_closedir(void *arg)
|
|||||||
{
|
{
|
||||||
closedir(arg);
|
closedir(arg);
|
||||||
}
|
}
|
||||||
|
#endif /* defined(GLOB_ALTDIRFUNC) */
|
||||||
|
|
||||||
/** Function passed to glob to handle processing errors. <b>epath</b> is the
|
/** Function passed to glob to handle processing errors. <b>epath</b> is the
|
||||||
* path that caused the error and <b>eerrno</b> is the errno set by the
|
* path that caused the error and <b>eerrno</b> is the errno set by the
|
||||||
|
Loading…
Reference in New Issue
Block a user