fix copy'n paste error
[buildroot.git] / package / ltp-testsuite / ltp-testsuite.conflicting-lseek-decl.patch
blob643bc8d7bdb838ccb45b91d2cecfceb86cd686ef
1 --- ltp-full-20080831.oorig/testcases/kernel/syscalls/fork/fork10.c 2008-08-31 16:33:17.000000000 +0200
2 +++ ltp-full-20080831/testcases/kernel/syscalls/fork/fork10.c 2008-09-26 17:43:36.000000000 +0200
3 @@ -42,6 +42,7 @@
4 #include <sys/types.h>
5 #include <sys/wait.h>
6 #include <sys/stat.h>
7 +#include <unistd.h>
8 #include <fcntl.h>
9 #include <stdio.h>
10 #include <errno.h>
11 @@ -63,7 +64,6 @@ int main(int ac, char **av)
12 int status, pid, fildes;
13 char parchar[2];
14 char chilchar[2];
15 - long lseek();
17 int lc; /* loop counter */
18 char *msg; /* message returned from parse_opts */
19 @@ -191,7 +191,7 @@ setup()
20 * make a temp directory and cd to it
22 tst_tmpdir();
25 strcpy(fnamebuf, "fork10.");
26 sprintf(pidbuf, "%d", getpid());
27 strcat(fnamebuf, pidbuf);