Folks
Here's the patch to get this to compile correctly with gcc 4. It's
actually only 3 lines. This has been tested with the following
versions:
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8), (RHEL4 32-bit)
gcc version 4.1.1 20070105 (Red Hat 4.1.1-52) (RHEL4 64-bit)
Thanks,
Guy
--
Guy Ferraiolo mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis http://CNET.com
CNET tel: 1.908.541.3739
1200 Route 22 East fax: 1.908.575.7474
Bridgewater, NJ 08807 cel: 1.732.618.0250
diff -urN flood/flood_round_robin.c flood-asf-patchbuild/flood_round_robin.c
--- flood/flood_round_robin.c 2008-04-15 15:07:15.317181000 -0700
+++ flood-asf-patchbuild/flood_round_robin.c 2008-04-15 15:18:04.262536000 -0700
@@ -905,7 +905,7 @@
XML_SUBST_VAR, FLOOD_STRLEN_MAX) == 0) {
if (subst_entry_child->first_cdata.first
&& subst_entry_child->first_cdata.first->text) {
- (subst_rec_t*)subst_rec_p->subst_var =
+ subst_rec_p->subst_var =
apr_pstrdup(pool,
subst_entry_child->first_cdata.first->text);
}
@@ -915,7 +915,7 @@
XML_SUBST_FILE, FLOOD_STRLEN_MAX) == 0) {
if (subst_entry_child->first_cdata.first
&& subst_entry_child->first_cdata.first->text) {
- (subst_rec_t*)subst_rec_p->subst_file_name =
+ subst_rec_p->subst_file_name =
apr_pstrdup(pool,
subst_entry_child->first_cdata.first->text);
}
diff -urN flood/flood_subst_file.c flood-asf-patchbuild/flood_subst_file.c
--- flood/flood_subst_file.c 2008-04-15 15:07:15.330182000 -0700
+++ flood-asf-patchbuild/flood_subst_file.c 2008-04-15 15:18:04.308533000 -0700
@@ -1,4 +1,5 @@
#include <assert.h>
+#include <stdlib.h>
#include <apr_general.h>
#include <apr_file_io.h>
#include "flood_subst_file.h"