+2011-09-19 Bruno Haible <bruno@clisp.org>
+
+ sched: Ensure pid_t is defined.
+ * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
+ not define pid_t.
+ * lib/sched.in.h: Include <sys/types.h>.
+ * doc/posix-headers/sched.texi: Mention the pid_t problem.
+ Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
2011-09-19 Bruno Haible <bruno@clisp.org>
msvc-inval: Ensure the entire expansion is a single statement.
This header file is missing on some platforms:
Minix 3.1.8, mingw, MSVC 9, BeOS.
@item
+This header file does not define the type @code{pid_t} on some platforms:
+glibc 2.11, MacOS X 10.5.
+@item
@code{struct sched_param} is not defined on some platforms:
Haiku.
@item
#ifndef _@GUARD_PREFIX@_SCHED_H
#define _@GUARD_PREFIX@_SCHED_H
+/* Get pid_t.
+ This is needed on glibc 2.11 (see
+ glibc bug <http://sourceware.org/bugzilla/show_bug.cgi?id=13198>)
+ and MacOS X 10.5. */
+#include <sys/types.h>
+
#if !@HAVE_STRUCT_SCHED_PARAM@
# if !GNULIB_defined_struct_sched_param
-# sched_h.m4 serial 5
+# sched_h.m4 serial 6
dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#include <sched.h>
struct sched_param a;
int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
+ pid_t t1;
]])],
[SCHED_H=''],
[SCHED_H='sched.h'