From 48ed88a081bc26300eb7030af451bbe830f9a89f Mon Sep 17 00:00:00 2001 From: nadiramra Date: Sun, 30 May 2010 22:16:02 +0000 Subject: 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 --- util/include/axutil_config.h | 2 ++ util/src/network_handler.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'util') 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 +#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)); -- cgit v1.1-32-gdbae