From: Robert W. <ro...@us...> - 2002-08-12 15:14:20
|
FYI. Patch applied to CVS tree and will be included in September release. - Robbie Robert V. Williamson <ro...@us...> Linux Test Project IBM Linux Technology Center Phone: (512) 838-9295 T/L: 638-9295 Fax: (512) 838-4603 http://ltp.sourceforge.net Andreas Jaeger <aj...@su...> To: ltp...@li... Sent by: cc: ltp...@li...ur Subject: [LTP] Patch for missing includes ceforge.net 08/12/2002 01:02 AM Here's a patch to add some missing includes to remove warnings about missing prototypes, Andreas Index: testcases/kernel/syscalls/getcwd/getcwd03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/getcwd/getcwd03.c,v retrieving revision 1.2 diff -u -p -r1.2 getcwd03.c --- testcases/kernel/syscalls/getcwd/getcwd03.c 3 Apr 2002 15:44:30 -0000 1.2 +++ testcases/kernel/syscalls/getcwd/getcwd03.c 12 Aug 2002 06:00:50 -0000 @@ -58,6 +58,9 @@ #include <test.h> #include <usctest.h> #include <stdlib.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <stdlib.h> #define FAILED 1 int flag; @@ -69,6 +72,7 @@ void cleanup(void); void setup(void); char *getpwd(); +int main(int ac, char **av) { char dir1[BUFSIZ], dir2[BUFSIZ]; Index: testcases/kernel/syscalls/wait4/wait402.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/wait4/wait402.c,v retrieving revision 1.2 diff -u -p -r1.2 wait402.c --- testcases/kernel/syscalls/wait4/wait402.c 14 Sep 2001 19:44:32 -0000 1.2 +++ testcases/kernel/syscalls/wait4/wait402.c 12 Aug 2002 06:00:50 -0000 @@ -59,6 +59,8 @@ #include <sys/types.h> #include <sys/resource.h> #include <sys/wait.h> +#include <stdlib.h> +#include <string.h> /* * See the Makefile for comments about the following preprocessor code. @@ -78,6 +80,7 @@ extern int Tst_count; int exp_enos[] = {10, 0}; +int main(int ac, char **av) { int lc; /* loop counter */ Index: testcases/kernel/syscalls/waitpid/waitpid09.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/waitpid/waitpid09.c,v retrieving revision 1.3 diff -u -p -r1.3 waitpid09.c --- testcases/kernel/syscalls/waitpid/waitpid09.c 10 Jun 2002 14:52:37 -0000 1.3 +++ testcases/kernel/syscalls/waitpid/waitpid09.c 12 Aug 2002 06:00:50 -0000 @@ -54,10 +54,13 @@ * None */ +#define _GNU_SOURCE 1 #include <sys/types.h> #include <signal.h> #include <errno.h> #include <sys/wait.h> +#include <stdlib.h> + #include "test.h" #include "usctest.h" -- Andreas Jaeger SuSE Labs aj...@su... private aj...@ar... http://www.suse.de/~aj ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Ltp-list mailing list Ltp...@li... https://lists.sourceforge.net/lists/listinfo/ltp-list |