Ticket #22: define_PATH_MAX.patch

File define_PATH_MAX.patch, 463 bytes (added by Cyril Lavier, 15 years ago)

Patch for setting the PATH_MAX value in src/os/unix/ngx_files.h

  • nginx-1.1.4/src/os/unix/ngx_files.h

    old new  
    183183#define ngx_getcwd_n             "getcwd()"
    184184#define ngx_path_separator(c)    ((c) == '/')
    185185
     186/*
     187 * Define PATH_MAX to 4096 if it's not defined
     188 */
     189
     190#ifndef PATH_MAX
     191#define PATH_MAX 4096
     192#endif
     193
    186194#define NGX_MAX_PATH             PATH_MAX
    187195
    188196#define NGX_DIR_MASK_LEN         0