diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-12 23:01:26 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-12 23:01:26 -0500 |
commit | c0e73fd1d8485e134cd9fe0dc9d218501fc82dce (patch) | |
tree | 4b191a14cc3036c7c9a39b9267dde4fb085b575d /src | |
parent | 8ae6807654e635277084f57c445e1e15d880c72c (diff) | |
download | lighttpd-git-c0e73fd1d8485e134cd9fe0dc9d218501fc82dce.tar.gz |
[mod_dirlisting] hide unused variable on MacOS
(quiet compiler warning)
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_dirlisting.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c index 0d487731..4a029d8c 100644 --- a/src/mod_dirlisting.c +++ b/src/mod_dirlisting.c @@ -851,7 +851,9 @@ static int http_list_directory(request_st * const r, plugin_data * const p, buff char * const path = malloc(dlen + name_max + 1); force_assert(NULL != path); memcpy(path, dir->ptr, dlen+1); + #if defined(HAVE_XATTR) || defined(HAVE_EXTATTR) || !defined(_ATFILE_SOURCE) char *path_file = path + dlen; + #endif log_error_st * const errh = r->conf.errh; struct dirent *dent; |