* 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.
This commit is contained in:
Danny Smith
2007-01-19 03:21:09 +00:00
parent 45fa1f99c6
commit 8dabc54e41
4 changed files with 33 additions and 15 deletions

View File

@ -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);