You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2013/10/03 15:56:56 UTC
svn commit: r1528869 - in /apr/apr/branches/1.5.x: ./ build/apr_network.m4
Author: rjung
Date: Thu Oct 3 13:56:56 2013
New Revision: 1528869
URL: http://svn.apache.org/r1528869
Log:
Fix compile w/ clang and IPv6
Submitted by: Yuri Pankov <yu...@gmail.com>
via freebsd ports/164420
Backport of r1235047 from trunk.
Modified:
apr/apr/branches/1.5.x/ (props changed)
apr/apr/branches/1.5.x/build/apr_network.m4
Propchange: apr/apr/branches/1.5.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1235047
Modified: apr/apr/branches/1.5.x/build/apr_network.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/build/apr_network.m4?rev=1528869&r1=1528868&r2=1528869&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/build/apr_network.m4 (original)
+++ apr/apr/branches/1.5.x/build/apr_network.m4 Thu Oct 3 13:56:56 2013
@@ -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);
}