aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2014-03-31 21:38:25 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2014-03-31 21:38:25 +0400
commit3183d7e17bdb9784096448168a8f89eeb5658438 (patch)
treea9938ddf7e0ff8ad08c44fb504fbbb2f741760ae /src/os/unix/ngx_files.h
parent6f1763213b7a98b69dc871b0a00e336e6d243477 (diff)
downloadnginx-3183d7e17bdb9784096448168a8f89eeb5658438.tar.gz
nginx-3183d7e17bdb9784096448168a8f89eeb5658438.zip
Added #ifndef around NGX_HAVE_CASELESS_FILESYSTEM define.
This brings Cygwin compilation in line with other case-insensitive systems (notably win32 and OS X) where one can force case sensitivity using -DNGX_HAVE_CASELESS_FILESYSTEM=0.
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index 4b2016500..a78ec9613 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -53,7 +53,9 @@ typedef struct {
#ifdef __CYGWIN__
+#ifndef NGX_HAVE_CASELESS_FILESYSTEM
#define NGX_HAVE_CASELESS_FILESYSTEM 1
+#endif
#define ngx_open_file(name, mode, create, access) \
open((const char *) name, mode|create|O_BINARY, access)