From 38a8eb97c80a2574b34ede71e6b06d2c481e9954 Mon Sep 17 00:00:00 2001 From: Bruno Haible 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 053a661b8..a7de51ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-09-20 Bruno Haible + time tests: Don't require pid_t. + * tests/test-time.c: Comment out the check for pid_t. + +2011-09-20 Bruno Haible + fsync tests: Avoid a test failure on mingw. * tests/test-fsync.c (main): Allow a failure with EIO. diff --git a/tests/test-time.c b/tests/test-time.c index df4710d44..d499a5ca1 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 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.11.0