From 78afc5e47d2d1f4c1be3a88081ae804ce5d6a62b Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Mon, 2 Feb 2015 15:10:15 -0800 Subject: [PATCH] Header file improvements to enable compiling lwip --- include/errno.h | 14 ++++++++++++++ include/limits.h | 8 ++++++++ include/unistd.h | 2 ++ sys/include/time.h | 8 ++++++++ 4 files changed, 32 insertions(+) create mode 100644 include/limits.h create mode 100644 sys/include/time.h diff --git a/include/errno.h b/include/errno.h index 1c1cbad..e82a39b 100644 --- a/include/errno.h +++ b/include/errno.h @@ -13,6 +13,20 @@ #define ENOSYS 0x1BAD0009 #define EAGAIN 0x1BAD000A #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__ */ diff --git a/include/limits.h b/include/limits.h new file mode 100644 index 0000000..02f3cc6 --- /dev/null +++ b/include/limits.h @@ -0,0 +1,8 @@ + +#ifndef __LIMITS_H__ +#define __LIMITS_H__ + + + +#endif /* __LIMITS_H__ */ + diff --git a/include/unistd.h b/include/unistd.h index 4782b53..e7d895e 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -6,6 +6,8 @@ #define STDOUT_FILENO 1 #define STDERR_FILENO 2 +struct timeval; + int syscall(int number, ...); unsigned int sleep(unsigned int seconds); diff --git a/sys/include/time.h b/sys/include/time.h new file mode 100644 index 0000000..981b827 --- /dev/null +++ b/sys/include/time.h @@ -0,0 +1,8 @@ + +#ifndef __SYS_TIME_H__ +#define __SYS_TIME_H__ + + + +#endif /* __SYS_TIME_H__ */ +