httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Dumas <edu...@tumbleweed.com>
Subject [patch] Apache2.0 - include files
Date Tue, 06 Jun 2000 22:03:19 GMT

Hello.

Please consider the following patch which prevent building the code
source because of strange preprocessor use. #ifdef should be use
instead of #if when no condition is specified.

RCS file: /cvs/apache/apache-2.0/src/include/ap_config.h,v
retrieving revision 1.28
diff -a -u -r1.28 ap_config.h
--- ap_config.h 2000/05/27 22:40:19     1.28
+++ ap_config.h 2000/06/06 22:00:01
@@ -227,7 +227,7 @@
 
 /* If APR has OTHER_CHILD logic, use reliable piped logs.
  */
-#if (APR_HAS_OTHER_CHILD)
+#ifdef APR_HAS_OTHER_CHILD
 #define HAVE_RELIABLE_PIPED_LOGS TRUE
 #endif
 
RCS file: /cvs/apache/apache-2.0/src/lib/apr/include/apr_general.h,v
retrieving revision 1.32
diff -a -u -r1.32 apr_general.h
--- apr_general.h       2000/04/28 18:31:20     1.32
+++ apr_general.h       2000/06/06 22:00:01
@@ -215,7 +215,7 @@
 #define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
 #endif
 
-#if APR_HAS_RANDOM
+#ifdef APR_HAS_RANDOM
 /*
 
 =head1 ap_status_t ap_generate_random_bytes(unsigned char * buf, int length)
RCS file: /cvs/apache/apache-2.0/src/lib/apr/include/apr_thread_proc.h,v
retrieving revision 1.34
diff -a -u -r1.34 apr_thread_proc.h
--- apr_thread_proc.h   2000/05/26 16:23:13     1.34
+++ apr_thread_proc.h   2000/06/06 22:00:01
@@ -72,7 +72,7 @@
 #define APR_PARENT_BLOCK     3
 #define APR_CHILD_BLOCK      4
 
-#if APR_HAS_OTHER_CHILD
+#ifdef APR_HAS_OTHER_CHILD
 #define APR_OC_REASON_DEATH         0     /* child has died, caller must call
                                            * unregister still */
 #define APR_OC_REASON_UNWRITABLE    1     /* write_fd is unwritable */
@@ -99,7 +99,7 @@
 typedef struct ap_procattr_t         ap_procattr_t;
 
 typedef struct ap_threadkey_t        ap_threadkey_t;
-#if APR_HAS_OTHER_CHILD
+#ifdef APR_HAS_OTHER_CHILD
 typedef struct ap_other_child_rec_t  ap_other_child_rec_t;
 #endif /* APR_HAS_OTHER_CHILD */
 
@@ -548,7 +548,7 @@
  */
 ap_status_t ap_detach(ap_proc_t *new, ap_pool_t *cont);
 
-#if APR_HAS_OTHER_CHILD
+#ifdef APR_HAS_OTHER_CHILD
 /*
 
 =head1 void ap_register_other_child(ap_proc_t *pid, void (*maintenance) (int reason, void
*data, int status), void *data, ap_file_t *write_fd, ap_pool_t *p)



-- 
                        √Čric Dumas (Eric.Dumas@tumbleweed.com)
   Tumbleweed Communications, 700 Saginaw Drive, Redwood City, CA 94063, USA
               http://www.tumbleweed.com    Tel: +1 650-216-2030


Mime
View raw message