From 4d074752ec75ec4580c7bea882334755a1ab1e2f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 10 Jan 2005 15:58:23 +0000 Subject: [PATCH] * gdb.base/fileio.c: Include unistd.h as required for lseek(2). --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/fileio.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f2d39eb73e6..34f0d40e692 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-01-10 Corinna Vinschen + + * gdb.base/fileio.c: Include unistd.h as required for lseek(2). + 2005-01-07 Andrew Cagney * configure.ac: Rename configure.in, require autoconf 2.59. diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index c9ef71506a9..69b51a28d5c 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -8,6 +8,7 @@ #include #include #include +#include /* TESTS : * - open(const char *pathname, int flags, mode_t mode); 1) Attempt to create file that already exists - EEXIST @@ -55,7 +56,6 @@ Not applicable. system (const char * string); 1) Invalid string/command. - returns 127. */ - static const char *strerrno (int err); #define FILENAME "foo.fileio.test" -- 2.30.2