You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2023/01/03 08:43:22 UTC

svn commit: r1906347 - in /apr/apr/trunk/build: apr_common.m4 aprconf.py dbm.m4

Author: jorton
Date: Tue Jan  3 08:43:21 2023
New Revision: 1906347

URL: http://svn.apache.org/viewvc?rev=1906347&view=rev
Log:
Fix configure for compilers which don't accept implicit
int (no longer part of C since C99).

Submitted by: Florian Weimer <fweimer redhat.com>
PR: 66396

Modified:
    apr/apr/trunk/build/apr_common.m4
    apr/apr/trunk/build/aprconf.py
    apr/apr/trunk/build/dbm.m4

Modified: apr/apr/trunk/build/apr_common.m4
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/apr_common.m4?rev=1906347&r1=1906346&r2=1906347&view=diff
==============================================================================
--- apr/apr/trunk/build/apr_common.m4 (original)
+++ apr/apr/trunk/build/apr_common.m4 Tue Jan  3 08:43:21 2023
@@ -501,7 +501,7 @@ AC_CACHE_CHECK([whether return code from
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
-main()
+int main(void)
 {
   char buf[1024];
   if (strerror_r(ERANGE, buf, sizeof buf) < 1) {

Modified: apr/apr/trunk/build/aprconf.py
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/aprconf.py?rev=1906347&r1=1906346&r2=1906347&view=diff
==============================================================================
--- apr/apr/trunk/build/aprconf.py (original)
+++ apr/apr/trunk/build/aprconf.py Tue Jan  3 08:43:21 2023
@@ -275,7 +275,7 @@ void main(void)
 #ifndef SEM_FAILED
 #define SEM_FAILED (-1)
 #endif
-main()
+int main()
 {
     sem_t *psem;
     const char *sem_name = "/apr_autoconf";
@@ -394,7 +394,7 @@ int main(void) {
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>
-main()
+int main()
 {
     union semun arg;
     semctl(0, 0, 0, arg);

Modified: apr/apr/trunk/build/dbm.m4
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/dbm.m4?rev=1906347&r1=1906346&r2=1906347&view=diff
==============================================================================
--- apr/apr/trunk/build/dbm.m4 (original)
+++ apr/apr/trunk/build/dbm.m4 Tue Jan  3 08:43:21 2023
@@ -235,7 +235,7 @@ AC_DEFUN([APU_TRY_BERKELEY_DB],
 #include <stdlib.h>
 #include <stdio.h>
 #include <$apu_try_berkeley_db_header>
-main ()
+int main (void)
 {
   int major, minor, patch;