]> Savannah Git Hosting - gnulib.git/commitdiff
sys_types: let Autoconf 2.70 do pid_t
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Aug 2020 02:36:10 +0000 (19:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 24 Aug 2020 02:36:42 +0000 (19:36 -0700)
* m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
only for Autoconf versions 2.69 and earlier, since 2.70
will be fixed.

ChangeLog
m4/pid_t.m4

index 073f96870b4efcef326563ee0d8858da144a0ac1..c6b057e689126486ab7e3c75d5c3439cb8bfca29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       sys_types: let Autoconf 2.70 do pid_t
+       * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
+       only for Autoconf versions 2.69 and earlier, since 2.70
+       will be fixed.
+
 2020-08-23  Bruno Haible  <bruno@clisp.org>
 
        tests: Don't assume that pid_t fits in an 'int'.
index 321082d0069cfb5c049dc82a4fe2ffac64c15a1e..4fb9c7aef91293497b42472a2ca754b1ee070d2c 100644 (file)
@@ -1,9 +1,12 @@
-# pid_t.m4 serial 1
+# pid_t.m4 serial 2
 dnl Copyright (C) 2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# The following implementation works around a problem in autoconf <= 2.69.
+m4_version_prereq([2.70], [] ,[
+
 dnl Define pid_t if the headers don't define it.
 AC_DEFUN([AC_TYPE_PID_T],
 [
@@ -31,3 +34,5 @@ AC_DEFUN([AC_TYPE_PID_T],
     ],
     [AC_INCLUDES_DEFAULT])
 ])
+
+])# m4_version_prereq 2.70