diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2007-01-19 03:21:09 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2007-01-19 03:21:09 +0000 |
commit | 8dabc54e418ecd70365abd3bc0f56d79b3c40de1 (patch) | |
tree | 38137426c0caccf5745c2deed28deffe02f71d48 /winsup/mingw/include/unistd.h | |
parent | 45fa1f99c6c9f57504c36e7efb653e44d8fe99b6 (diff) | |
download | cygnal-8dabc54e418ecd70365abd3bc0f56d79b3c40de1.tar.gz cygnal-8dabc54e418ecd70365abd3bc0f56d79b3c40de1.tar.bz2 cygnal-8dabc54e418ecd70365abd3bc0f56d79b3c40de1.zip |
* include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
unconditionally. Change comment.
* include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
here too.
* include/io.h (rename): Declare.
(remove): Declare.
Diffstat (limited to 'winsup/mingw/include/unistd.h')
-rw-r--r-- | winsup/mingw/include/unistd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/winsup/mingw/include/unistd.h b/winsup/mingw/include/unistd.h index f3a54495e..90934a0ed 100644 --- a/winsup/mingw/include/unistd.h +++ b/winsup/mingw/include/unistd.h @@ -14,10 +14,24 @@ #include <getopt.h> #undef __UNISTD_GETOPT__ +/* These are also defined in stdio.h. */ +#ifndef SEEK_SET +#define SEEK_SET 0 +#endif + +#ifndef SEEK_CUR +#define SEEK_CUR 1 +#endif + +#ifndef SEEK_END +#define SEEK_END 2 +#endif + #ifdef __cplusplus extern "C" { #endif + /* This is defined as a real library function to allow autoconf to verify its existence. */ int ftruncate(int, off_t); |