Header file improvements to enable compiling lwip

This commit is contained in:
Ali Mashtizadeh 2015-02-02 15:10:15 -08:00
parent d1b8872a48
commit 78afc5e47d
4 changed files with 32 additions and 0 deletions

View File

@ -13,6 +13,20 @@
#define ENOSYS 0x1BAD0009 #define ENOSYS 0x1BAD0009
#define EAGAIN 0x1BAD000A #define EAGAIN 0x1BAD000A
#define EBUSY 0x1BAD000B #define EBUSY 0x1BAD000B
#define EWOULDBLOCK 0x1BAD000C
#define EALREADY 0x1BAD000D
#define EINPROGRESS 0x1BAD000E
#define ENFILE 0x1BAD000F
#define EAFNOSUPPORT 0x1BAD0020
#define ENOPROTOOPT 0x1BAD0021
#define EOPNOTSUPP 0x1BAD0022
#define EHOSTUNREACH 0x1BAD0023
#define ECONNABORTED 0x1BAD0024
#define ECONNRESET 0x1BAD0025
#define ENOTCONN 0x1BAD0026
#define ENOBUFS 0x1BAD0027
#define EADDRINUSE 0x1BAD0028
#endif /* __ERRNO_H__ */ #endif /* __ERRNO_H__ */

8
include/limits.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef __LIMITS_H__
#define __LIMITS_H__
#endif /* __LIMITS_H__ */

View File

@ -6,6 +6,8 @@
#define STDOUT_FILENO 1 #define STDOUT_FILENO 1
#define STDERR_FILENO 2 #define STDERR_FILENO 2
struct timeval;
int syscall(int number, ...); int syscall(int number, ...);
unsigned int sleep(unsigned int seconds); unsigned int sleep(unsigned int seconds);

8
sys/include/time.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef __SYS_TIME_H__
#define __SYS_TIME_H__
#endif /* __SYS_TIME_H__ */