#include <__header_unistd.h>
#include <__macro_FD_SETSIZE.h>
#include <__macro_PAGESIZE.h>
+#include <__seek.h>
#include <__struct_dirent.h>
#include <__struct_in6_addr.h>
#include <__struct_in_addr.h>
#define __wasilibc___headers_stdlib_h
#define __wasilibc___headers_string_h
#define __wasilibc___macro_FD_SETSIZE_h
+#define __wasilibc___seek_h
#define __wasilibc___struct_dirent_h
#define __wasilibc___struct_in6_addr_h
#define __wasilibc___struct_in_addr_h
#define __wasilibc___header_fcntl_h
#include <wasi/core.h>
+#include <__seek.h>
#define O_APPEND __WASI_FDFLAG_APPEND
#define O_DSYNC __WASI_FDFLAG_DSYNC
struct stat;
-#include <wasi/core.h>
-
-#define SEEK_CUR __WASI_WHENCE_CUR
-#define SEEK_END __WASI_WHENCE_END
-#define SEEK_SET __WASI_WHENCE_SET
+#include <__seek.h>
#define F_OK 0
#define R_OK 1
--- /dev/null
+#ifndef __wasilibc___seek_h
+#define __wasilibc___seek_h
+
+#include <wasi/core.h>
+
+#define SEEK_CUR __WASI_WHENCE_CUR
+#define SEEK_END __WASI_WHENCE_END
+#define SEEK_SET __WASI_WHENCE_SET
+
+#endif
#define SEEK_CUR 1
#define SEEK_END 2
#else
-#include <__header_unistd.h>
+#include <__seek.h>
#endif
#define _IOFBF 0