]> Savannah Git Hosting - gnulib.git/commitdiff
sched: substitute HAVE_SYS_CDEFS_H too
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Oct 2016 06:46:10 +0000 (23:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Oct 2016 06:46:35 +0000 (23:46 -0700)
Problem reported by Tom G. Christensen in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
* m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
* modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.

ChangeLog
m4/sched_h.m4
modules/sched

index 48f718007d7501a2ec6fb4db207b11d2018174e1..a1a314b578106a4a036f6f7c12856603cc5440f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       sched: substitute HAVE_SYS_CDEFS_H too
+       Problem reported by Tom G. Christensen in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
+       * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
+       * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
+
 2016-10-19  Pádraig Brady  <P@draigBrady.com>
 
        quotearg: never write beyond the returned length
index 7192b6302bafce841e39f88d8b355d51800e81e8..147613bc441ea1fe1789c4f8c782cd25d95c3def 100644 (file)
@@ -1,4 +1,4 @@
-# sched_h.m4 serial 8
+# sched_h.m4 serial 9
 dnl Copyright (C) 2008-2016 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -48,6 +48,13 @@ AC_DEFUN([gl_SCHED_H],
      fi
      AC_SUBST([HAVE_STRUCT_SCHED_PARAM])
 
+     if test "$ac_cv_header_sys_cdefs_h" = yes; then
+       HAVE_SYS_CDEFS_H=1
+     else
+       HAVE_SYS_CDEFS_H=0
+     fi
+     AC_SUBST([HAVE_SYS_CDEFS_H])
+
      dnl Ensure the type pid_t gets defined.
      AC_REQUIRE([AC_TYPE_PID_T])
     ])
index 31f9573050befb13cb8f52948107648f74fbabe9..b6f285234bb629b12e6b637f3e57f7315749c2b9 100644 (file)
@@ -22,6 +22,7 @@ sched.h: sched.in.h $(top_builddir)/config.status
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \
+             -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
              -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \