Now compiles (incorrectly) the entire libc, libpc, libm2 and libbasic!

--HG--
branch : dtrg-videocore
This commit is contained in:
David Given
2013-05-21 20:05:26 +01:00
parent 92817a6ad7
commit 1312fe298b
2 changed files with 173 additions and 67 deletions

View File

@@ -9,12 +9,32 @@
#define _UNISTD_H
#include <stddef.h>
#include <time.h>
/* Types */
typedef int pid_t;
typedef int mode_t;
typedef long suseconds_t;
/* Time handling. */
struct timeval
{
time_t tv_sec;
suseconds_t tv_usec;
};
struct timezone
{
int tz_minuteswest;
int tz_dsttime;
}; /* obsolete, unused */
extern int gettimeofday(struct timeval* tv, struct timezone* tz);
extern int settimeofday(const struct timeval* tv, const struct timezone* tz);
/* Constants for file access (open and friends) */
enum