From 38a8eb97c80a2574b34ede71e6b06d2c481e9954 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Wed, 21 Sep 2011 01:03:23 +0200
Subject: [PATCH] time tests: Don't require pid_t.

* tests/test-time.c: Comment out the check for pid_t.
---
 ChangeLog         | 5 +++++
 tests/test-time.c | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 053a661b85..a7de51ccc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-20  Bruno Haible  <bruno@clisp.org>
+
+	time tests: Don't require pid_t.
+	* tests/test-time.c: Comment out the check for pid_t.
+
 2011-09-20  Bruno Haible  <bruno@clisp.org>
 
 	fsync tests: Avoid a test failure on mingw.
diff --git a/tests/test-time.c b/tests/test-time.c
index df4710d445..d499a5ca16 100644
--- a/tests/test-time.c
+++ b/tests/test-time.c
@@ -24,7 +24,11 @@
 
 /* Check that the types are all defined.  */
 struct timespec t1;
+#if 0
+/* POSIX:2008 does not require pid_t in <time.h> unconditionally, and indeed
+   it's missing on MacOS X 10.5, FreeBSD 6.4, OpenBSD 4.9, mingw.  */
 pid_t t2;
+#endif
 
 /* Check that NULL can be passed through varargs as a pointer type,
    per POSIX 2008.  */
-- 
2.39.5