OSDN Git Service

* Fixed Bug.
authorAtsushi Konno <atkonn@gmail.com>
Mon, 4 Jul 2011 11:59:53 +0000 (20:59 +0900)
committerAtsushi Konno <atkonn@gmail.com>
Mon, 4 Jul 2011 11:59:53 +0000 (20:59 +0900)
    - It is not possible to compile with RHEL/CentOS4.
      (Thanx Mr.ooi and Mr.osanai)

include/mod_chxj.h

index 0047f21..faffdd8 100755 (executable)
@@ -550,6 +550,25 @@ extern void *rpl_malloc(size_t n);
 
 
 #define TO_ADDR(X) ((unsigned int)(apr_size_t)(X))
+
+#if APR_MAJOR_VERSION < 1
+  #ifndef APR_FOPEN_READ
+    #define APR_FOPEN_READ APR_READ
+  #endif
+  #ifndef APR_FOPEN_BUFFERED
+    #define APR_FOPEN_BUFFERED APR_BUFFERED
+  #endif
+  #ifndef APR_FOPEN_BINARY
+    #define APR_FOPEN_BINARY APR_BINARY
+  #endif
+  #ifndef APR_FOPEN_CREATE
+    #define APR_FOPEN_CREATE APR_CREATE
+  #endif
+  #ifndef APR_FOPEN_WRITE
+    #define APR_FOPEN_WRITE APR_WRITE
+  #endif
+#endif
+
 #endif
 /*
  * vim:ts=2 et