]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
authorAkim Demaille <akim@epita.fr>
Tue, 29 Oct 2002 12:52:36 +0000 (12:52 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 29 Oct 2002 12:52:36 +0000 (12:52 +0000)
sys/wait.h.
sparc_address_test returns void.
Use it with an argument, as prototyped.
From Bruno Haible.

ChangeLog
lib/autoconf/functions.m4

index 043f6b04e4b070fd9994b1c0ff11416662e7618a..7cf29e9c7e6ef94da05b1533246826fc158afde7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-10-29  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
+       sys/wait.h.
+       sparc_address_test returns void.
+       Use it with an argument, as prototyped.
+       From Bruno Haible.
+
 2002-10-29  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Subdirectories): Cygnus dirs have
index d8f8ba20d96ef9ea14428e59e76e7aa22133e8b9..23c12428b0c74f143fc44492c3d6e41e72b31dc8 100644 (file)
@@ -1750,8 +1750,10 @@ AC_DEFUN([_AC_FUNC_VFORK],
 [AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works,
 [AC_RUN_IFELSE([AC_LANG_SOURCE([[/* Thanks to Paul Eggert for this test.  */
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/wait.h>
 #if HAVE_UNISTD_H
 # include <unistd.h>
 #endif
@@ -1764,7 +1766,7 @@ AC_DEFUN([_AC_FUNC_VFORK],
    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
    static variable whose address is put into a register that is
    clobbered by the vfork.  */
-static
+static void
 #ifdef __cplusplus
 sparc_address_test (int arg)
 # else
@@ -1792,7 +1794,7 @@ main ()
   pid_t parent = getpid ();
   pid_t child;
 
-  sparc_address_test ();
+  sparc_address_test (0);
 
   child = vfork ();