time tests: Don't require pid_t.
authorBruno Haible <bruno@clisp.org>
Tue, 20 Sep 2011 23:03:23 +0000 (01:03 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 20 Sep 2011 23:03:23 +0000 (01:03 +0200)
* tests/test-time.c: Comment out the check for pid_t.

ChangeLog
tests/test-time.c

index 053a661..a7de51c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * tests/test-fsync.c (main): Allow a failure with EIO.
 
index df4710d..d499a5c 100644 (file)
 
 /* 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.  */