summaryrefslogtreecommitdiff
path: root/build/apr_network.m4
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@apache.org>2012-01-23 22:45:12 +0000
committerPhilip M. Gollucci <pgollucci@apache.org>2012-01-23 22:45:12 +0000
commit06ac93a4b86feb8c2fde40c7703984387c636ef1 (patch)
tree5584fbc1132aae09318c90284e15c66237d21452 /build/apr_network.m4
parent4d202219d92308c91858f92be6c9b1184df9cc6a (diff)
downloadapr-06ac93a4b86feb8c2fde40c7703984387c636ef1.tar.gz
Fix compile w/ clang and IPv6
Submitted by: Yuri Pankov <yuri.pankov@gmail.com> via freebsd ports/164420 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1235047 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_network.m4')
-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);
}