Externals/cross-compiler - Patching to get things compiling
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / include_exp / stdio.h
index 4a81c18..074cd25 100644 (file)
@@ -5,8 +5,9 @@
 #ifndef __STDIO_H
 #define __STDIO_H
 
-#include <stdlib.h>
+#include <sys/types.h>
 #include <stdarg.h>
+#include <stddef.h>    // size_t
 
 /* === Types === */
 typedef struct sFILE   FILE;
@@ -15,6 +16,12 @@ typedef struct sFILE FILE;
 #define EOF    (-1)
 #define BUFSIZ 1024
 
+#ifndef SEEK_CUR
+#define SEEK_CUR       1
+#define SEEK_SET       0
+#define SEEK_END       (-1)
+#endif
+
 /* --- Standard IO --- */
 extern int     printf(const char *format, ...);
 extern int     vsnprintf(char *buf, size_t __maxlen, const char *format, va_list args);

UCC git Repository :: git.ucc.asn.au