You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2020/10/29 20:23:12 UTC
svn commit: r1882980 - in /apr/apr/branches/1.7.x: build/apr_common.m4
build/apr_network.m4 configure.in
Author: jim
Date: Thu Oct 29 20:23:11 2020
New Revision: 1882980
URL: http://svn.apache.org/viewvc?rev=1882980&view=rev
Log:
calls to exit() require stdlib.h or else we get -Werror,-Wimplicit-function-declaration
Modified:
apr/apr/branches/1.7.x/build/apr_common.m4
apr/apr/branches/1.7.x/build/apr_network.m4
apr/apr/branches/1.7.x/configure.in
Modified: apr/apr/branches/1.7.x/build/apr_common.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/build/apr_common.m4?rev=1882980&r1=1882979&r2=1882980&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/build/apr_common.m4 (original)
+++ apr/apr/branches/1.7.x/build/apr_common.m4 Thu Oct 29 20:23:11 2020
@@ -495,6 +495,7 @@ AC_CACHE_CHECK([whether return code from
#include <errno.h>
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
main()
{
char buf[1024];
Modified: apr/apr/branches/1.7.x/build/apr_network.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/build/apr_network.m4?rev=1882980&r1=1882979&r2=1882980&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/build/apr_network.m4 (original)
+++ apr/apr/branches/1.7.x/build/apr_network.m4 Thu Oct 29 20:23:11 2020
@@ -63,6 +63,9 @@ AC_DEFUN([APR_CHECK_WORKING_GETADDRINFO]
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
int main(void) {
struct addrinfo hints, *ai;
@@ -151,6 +154,9 @@ AC_DEFUN([APR_CHECK_WORKING_GETNAMEINFO]
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
int main(void) {
struct sockaddr_in sa;
@@ -194,6 +200,9 @@ AC_DEFUN([APR_CHECK_NEGATIVE_EAI], [
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
int main(void) {
if (EAI_ADDRFAMILY < 0) {
@@ -403,6 +412,9 @@ AC_DEFUN([APR_CHECK_TCP_NODELAY_INHERITE
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
int main(void) {
int listen_s, connected_s, client_s;
int listen_port, rc;
@@ -588,6 +600,9 @@ typedef int socklen_t;
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
int main(void) {
int listen_s, connected_s, client_s;
int listen_port, rc;
Modified: apr/apr/branches/1.7.x/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/configure.in?rev=1882980&r1=1882979&r2=1882980&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/configure.in (original)
+++ apr/apr/branches/1.7.x/configure.in Thu Oct 29 20:23:11 2020
@@ -2214,6 +2214,7 @@ AC_TRY_RUN([
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include <stdlib.h>
main()
{
struct rlimit limit;
@@ -2250,6 +2251,7 @@ AC_TRY_RUN([
#include <stdlib.h>
#include <fcntl.h>
#include <semaphore.h>
+#include <stdlib.h>
#ifndef SEM_FAILED
#define SEM_FAILED (-1)
#endif
@@ -2313,6 +2315,7 @@ if test "$threads" = "1"; then
AC_TRY_RUN([
#include <sys/types.h>
#include <pthread.h>
+#include <stdlib.h>
int main()
{
pthread_mutex_t mutex;
@@ -2442,7 +2445,9 @@ AC_TRY_RUN([
#endif
#include <fcntl.h>
#include <errno.h>
-
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
int fd;
struct flock proc_mutex_lock_it = {0};
const char *fname = "conftest.fcntl";