#if (!defined(__BEOS__) && !defined(__HAIKU__))
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <sys/param.h>
# include <unistd.h>
# include <utime.h>
# define DIRENT
# include <time.h>
# ifndef DATE_FORMAT
# define DATE_FORMAT DF_MDY
# endif
# define lenEOL 1
# define PutNativeEOL *q++ = native(LF);
# define SCREENSIZE(ttrows, ttcols) screensize(ttrows, ttcols)
# define SCREENWIDTH 80
# define USE_EF_UT_TIME
# define SET_DIR_ATTRIB
# if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
# define TIMESTAMP
# endif
# define RESTORE_UIDGID
# define NO_STRNICMP
# define INT_SPRINTF
# define SYMLINKS
# define MAIN main_stub
# ifndef EOK
# define EOK B_OK
# endif
# define HAIKU_USE_KERN_OPEN 1
# define _kern_open _kernbuild_open
extern int _kern_open(int fd, const char *path, int openMode, int perms);
#endif