summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar nadiramra2010-05-30 22:16:02 +0000
committerGravatar nadiramra2010-05-30 22:16:02 +0000
commit48ed88a081bc26300eb7030af451bbe830f9a89f (patch)
tree29216652b9a1da63bcaa68a4ce4e596ea1cc39ba
parentcddcc5e6b3d63e42ded5bca4a3e5e7972cb2e216 (diff)
downloadaxis2c-48ed88a081bc26300eb7030af451bbe830f9a89f.tar.gz
axis2c-48ed88a081bc26300eb7030af451bbe830f9a89f.tar.bz2
AXIS2C-1478 Changes due to port to IBM i (aka OS/400).
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@949629 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--util/include/axutil_config.h2
-rw-r--r--util/src/network_handler.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/util/include/axutil_config.h b/util/include/axutil_config.h
index a35c0bd..01f7195 100644
--- a/util/include/axutil_config.h
+++ b/util/include/axutil_config.h
@@ -28,7 +28,9 @@
#undef PACKAGE_VERSION
#undef VERSION
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
/* undef unwated cnfig macros to avoid conflicts with APR macros */
#undef PACKAGE
diff --git a/util/src/network_handler.c b/util/src/network_handler.c
index a8d154e..04e6ea6 100644
--- a/util/src/network_handler.c
+++ b/util/src/network_handler.c
@@ -435,7 +435,7 @@ axutil_network_handler_read_dgram(
{
struct sockaddr_in sender_address;
int received = 0;
- unsigned int sender_address_size = sizeof(sender_address);
+ int sender_address_size = sizeof(sender_address);
received = recvfrom(sock, buffer, *buf_len, 0, (struct sockaddr *)&sender_address,
&sender_address_size);
@@ -481,7 +481,7 @@ axutil_network_handler_send_dgram(
struct sockaddr_in recv_addr, source_addr;
int send_bytes = 0;
unsigned int recv_addr_size = 0;
- unsigned int source_addr_size = sizeof(source_addr);
+ int source_addr_size = sizeof(source_addr);
recv_addr_size = sizeof(recv_addr);
memset(&recv_addr, 0, sizeof(recv_addr));