[nginx] Added #ifndef around NGX_HAVE_CASELESS_FILESYSTEM define.

Maxim Dounin mdounin at mdounin.ru
Mon Mar 31 17:39:59 UTC 2014


details:   http://hg.nginx.org/nginx/rev/f1dfe7ff4511
branches:  
changeset: 5631:f1dfe7ff4511
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Mon Mar 31 21:38:25 2014 +0400
description:
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:

 src/os/unix/ngx_files.h |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
--- 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)



More information about the nginx-devel mailing list