--- orig/nginx-1.1.4/src/os/unix/ngx_files.h	2011-07-24 19:46:53.000000000 +0000
+++ nginx-1.1.4/src/os/unix/ngx_files.h	2011-09-27 13:54:55.000000000 +0000
@@ -183,6 +183,14 @@
 #define ngx_getcwd_n             "getcwd()"
 #define ngx_path_separator(c)    ((c) == '/')
 
+/*
+ * Define PATH_MAX to 4096 if it's not defined
+ */
+
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #define NGX_MAX_PATH             PATH_MAX
 
 #define NGX_DIR_MASK_LEN         0
