diff options
author | George Burgess IV <gbiv@google.com> | 2017-01-26 10:03:58 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-26 10:03:58 +0000 |
commit | 7f21de1d92d549a248581112fc51525e157e7184 (patch) | |
tree | 6b81ad2224bab7c4da4d38ce82f1e661edc75921 | |
parent | b48b9dd6108924b0048b1d4d82f7560a812f549d (diff) | |
parent | b93e4be44ace31dc915b1a84a03c801625bb0722 (diff) | |
download | ltp-7f21de1d92d549a248581112fc51525e157e7184.tar.gz |
Merge "Cherrypick a change to drop getcwd prototypes." am: 4367cc55b9 am: 5245bb626d
am: b93e4be44a
Change-Id: Ib65aece88d556e10d16a8aa4ff4fe86d8c7c27f4
-rw-r--r-- | testcases/kernel/syscalls/symlink/symlink01.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testcases/kernel/syscalls/symlink/symlink01.c b/testcases/kernel/syscalls/symlink/symlink01.c index 61c4541e3..03a51a5cb 100644 --- a/testcases/kernel/syscalls/symlink/symlink01.c +++ b/testcases/kernel/syscalls/symlink/symlink01.c @@ -214,6 +214,7 @@ #include <sys/param.h> #include <sys/stat.h> /* stat(2) and lstat(2) system calls */ #include <stdint.h> +#include <unistd.h> #include "test.h" @@ -795,7 +796,7 @@ int ck_both(char *path1, char *path2, char *path3) int creat_path_max(char *path1, char *path2, char *path3) { int ctr, to_go, size, whole_chunks; - char *cwd, *getcwd(); + char *cwd; if ((cwd = getcwd(NULL, 0)) == NULL) { TEST_RESULT = TBROK; @@ -1490,7 +1491,7 @@ void do_chdir(struct all_test_cases *tc_ptr) "symbolic link which which pointed at object"); else { - char *cwd, *getcwd(); + char *cwd; char expected_location[PATH_MAX]; /* * Build expected current directory position |