From 53ffbd1ff3d420e2e6e6be4162873878048a0895 Mon Sep 17 00:00:00 2001 From: jani Date: Mon, 15 Sep 2003 09:07:49 +0000 Subject: [PATCH] EFAULT not defined in ecos but used in sockets.c --- ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h b/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h index 74a9b67..380d8c3 100644 --- a/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h +++ b/ports/ecos/ecos/net/lwip_tcpip/current/include/arch/cc.h @@ -36,6 +36,10 @@ #include #include +//while EFAULT should have no meaning in eCos since there are no address spaces +//it is defined here because set/getsockopt in lwIP use it. +#define EFAULT 14 +//#define LWIP_PROVIDE_ERRNO #include #if (CYG_BYTEORDER == CYG_LSBFIRST) #define BYTE_ORDER LITTLE_ENDIAN