/* Fixups for file.h */

#ifndef _PORT_FILE_H
#define _PORT_FILE_H

/* SYSV file.h needs to include types.h but doesnt */

#include <sys/types.h>

/* Need to define L_SET, L_INCR, L_XTND in terms of SEEK_xxx */

#include <unistd.h>
#define L_SET (SEEK_SET)
#define L_INCR (SEEK_CUR)
#define L_XTND (SEEK_END)

#include "/usr/include/sys/file.h"

/* Also include fcntl for the O_xxx stuff, since code assumes file.h does this */

#include <fcntl.h>

#endif
