This unbreaks my build in OpenBSD. The old `long lseek()` conflicts
with `off_t lseek()` in OpenBSD headers, because long and off_t are
different types. Commit
b4df26e caused "system.h" to include some
headers where OpenBSD declares lseek().
Manuals for lseek() say to #include <unistd.h>. Do so to be portable
to systems where other headers don't declare lseek().
*/
/* $Id$ */
+#include <unistd.h>
#include "system.h"
extern File *_get_entry();
{
register int fd;
register File *fp;
- long lseek();
if ((fp = _get_entry()) == (File *)0)
return 0;
*/
/* $Id$ */
+#include <unistd.h>
#include "system.h"
-long lseek();
-
int
sys_seek(fp, off, whence, poff)
File *fp;