summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpgollucci <pgollucci@13f79535-47bb-0310-9956-ffa450edef68>2012-01-23 22:45:12 +0000
committerpgollucci <pgollucci@13f79535-47bb-0310-9956-ffa450edef68>2012-01-23 22:45:12 +0000
commite05aed8ee3e1dcb56871a06908604d0cf9f7e491 (patch)
tree5584fbc1132aae09318c90284e15c66237d21452
parentfa1d9142497a6dab87a5001763ef60dc56c45166 (diff)
downloadlibapr-e05aed8ee3e1dcb56871a06908604d0cf9f7e491.tar.gz
Fix compile w/ clang and IPv6
Submitted by: Yuri Pankov <yuri.pankov@gmail.com> via freebsd ports/164420 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1235047 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build/apr_network.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/build/apr_network.m4 b/build/apr_network.m4
index e2fdbdae3..e41abcc0d 100644
--- a/build/apr_network.m4
+++ b/build/apr_network.m4
@@ -64,7 +64,7 @@ AC_DEFUN([APR_CHECK_WORKING_GETADDRINFO], [
#include <sys/socket.h>
#endif
-void main(void) {
+int main(void) {
struct addrinfo hints, *ai;
int error;
@@ -152,7 +152,7 @@ AC_DEFUN([APR_CHECK_WORKING_GETNAMEINFO], [
#include <netinet/in.h>
#endif
-void main(void) {
+int main(void) {
struct sockaddr_in sa;
char hbuf[256];
int error;
@@ -195,7 +195,7 @@ AC_DEFUN([APR_CHECK_NEGATIVE_EAI], [
#include <netdb.h>
#endif
-void main(void) {
+int main(void) {
if (EAI_ADDRFAMILY < 0) {
exit(0);
}