]> granicus.if.org Git - esp-idf/commitdiff
components/lwip: use newlib errno
authorWu Jian Gang <wujiangang@espressif.com>
Mon, 29 Aug 2016 07:35:44 +0000 (15:35 +0800)
committerWu Jian Gang <wujiangang@espressif.com>
Mon, 29 Aug 2016 07:35:44 +0000 (15:35 +0800)
components/lwip/include/lwip/port/arch/cc.h

index 8e98502ccfcb02eec10b47369482872c65e7b710..6fc1da1843b060b233e9b235a08bd567de139e40 100644 (file)
@@ -35,6 +35,7 @@
 #define __ARCH_CC_H__
 
 #include <stdint.h>
+#include <errno.h>
 
 #include "arch/sys_arch.h"
 
@@ -72,6 +73,4 @@ typedef int sys_prot_t;
 #define LWIP_NOASSERT
 //#define LWIP_ERROR
 
-#define LWIP_PROVIDE_ERRNO
-
 #endif /* __ARCH_CC_H__ */