diff --git a/sortix/io.cpp b/sortix/io.cpp index 661f5ee0..2246ddad 100644 --- a/sortix/io.cpp +++ b/sortix/io.cpp @@ -24,6 +24,7 @@ #include "platform.h" #include +#include #include "thread.h" #include "process.h" #include "device.h" @@ -117,17 +118,6 @@ namespace Sortix return 0; } -// TODO: Get these from unistd.h or something. -#ifndef SEEK_SET -#define SEEK_SET 0 /* Seek from beginning of file. */ -#endif -#ifndef SEEK_CUR -#define SEEK_CUR 1 /* Seek from current position. */ -#endif -#ifndef SEEK_END -#define SEEK_END 2 /* Seek from end of file. */ -#endif - void SysSeek(int fd, off_t* offset, int whence) { // TODO: Validate that offset is a legal user-space off_t!