]> granicus.if.org Git - check/commitdiff
* move #include <sys/wait.h> to libcompat.h
authorcpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 31 Dec 2008 22:33:45 +0000 (22:33 +0000)
committercpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 31 Dec 2008 22:33:45 +0000 (22:33 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@509 64e312b2-a51f-0410-8e61-82d0ca0eb02a

lib/libcompat.h
src/check_run.c
tests/check_check_sub.c

index 4f14c3e32437ba2e4bd21ecbea1f77fe78b287cf..13a6acbd19000601dc978a1c5e330f32a338bbfe 100644 (file)
 #include <unistd.h>
 #endif
 
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
 /* declares pthread_create and friends */
 #ifdef HAVE_PTHREAD
 #include <pthread.h>
index fd24cdc4a1dd1dcd143065aed0bc02111f186e5f..a5d4140daceacc77f7069aa3677ad12e857c5818 100644 (file)
@@ -21,9 +21,6 @@
 #include "../lib/libcompat.h"
 
 #include <sys/types.h>
-#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h>
-#endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
index e5480c2827bf84e76ac55e3b5812685d0ebf9a13..905ee7d597b547b81d77c95108ea46959545e17f 100644 (file)
@@ -1,9 +1,6 @@
 #include "../lib/libcompat.h"
 
 #include <sys/types.h>
-#if HAVE_SYS_WAIT_H
-#include <sys/wait.h>
-#endif /* HAVE_SYS_WAIT_H */
 #include <stdlib.h>
 #include <signal.h>
 #include <check.h>
@@ -13,6 +10,9 @@
 
 
 
+
+
+
 START_TEST(test_lno)
 {
   fail("Failure expected"); /* line 18*/