mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-26 09:35:23 +00:00
Contrib: Add kFreeBSD to the Unix port
* cc.h: * Identify kFreeBSD by macros * Use standard error codes for this OS Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
f47d2ed5fe
commit
2b6d9a56f7
@ -41,6 +41,8 @@
|
|||||||
#define LWIP_UNIX_MACH
|
#define LWIP_UNIX_MACH
|
||||||
#elif defined __OpenBSD__
|
#elif defined __OpenBSD__
|
||||||
#define LWIP_UNIX_OPENBSD
|
#define LWIP_UNIX_OPENBSD
|
||||||
|
#elif defined __FreeBSD_kernel__ && __GLIBC__
|
||||||
|
#define LWIP_UNIX_KFREEBSD
|
||||||
#elif defined __CYGWIN__
|
#elif defined __CYGWIN__
|
||||||
#define LWIP_UNIX_CYGWIN
|
#define LWIP_UNIX_CYGWIN
|
||||||
#elif defined __GNU__
|
#elif defined __GNU__
|
||||||
@ -52,7 +54,7 @@
|
|||||||
|
|
||||||
#define LWIP_ERRNO_INCLUDE <errno.h>
|
#define LWIP_ERRNO_INCLUDE <errno.h>
|
||||||
|
|
||||||
#if defined(LWIP_UNIX_LINUX) || defined(LWIP_UNIX_HURD)
|
#if defined(LWIP_UNIX_LINUX) || defined(LWIP_UNIX_HURD) || defined(LWIP_UNIX_KFREEBSD)
|
||||||
#define LWIP_ERRNO_STDINCLUDE 1
|
#define LWIP_ERRNO_STDINCLUDE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user