aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/fileio.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-01-10 15:58:23 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-01-10 15:58:23 +0000
commit4d074752ec75ec4580c7bea882334755a1ab1e2f (patch)
tree48af4446a97bd60e0926978cf641c93fcab7443f /gdb/testsuite/gdb.base/fileio.c
parent59ef2528a2e8266cf600f1b741fad7f0edc43496 (diff)
downloadgdb-4d074752ec75ec4580c7bea882334755a1ab1e2f.zip
gdb-4d074752ec75ec4580c7bea882334755a1ab1e2f.tar.gz
gdb-4d074752ec75ec4580c7bea882334755a1ab1e2f.tar.bz2
* gdb.base/fileio.c: Include unistd.h as required for lseek(2).
Diffstat (limited to 'gdb/testsuite/gdb.base/fileio.c')
-rw-r--r--gdb/testsuite/gdb.base/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c
index c9ef715..69b51a2 100644
--- a/gdb/testsuite/gdb.base/fileio.c
+++ b/gdb/testsuite/gdb.base/fileio.c
@@ -8,6 +8,7 @@
#include <sys/time.h>
#include <errno.h>
#include <sys/wait.h>
+#include <unistd.h>
/* 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"