Browse Source

Fix redefine bug on some other version SDK(such as espressif's lubuntu environment)

Signed-off-by: Huang Rui <vowstar@gmail.com>
Huang Rui 8 years ago
parent
commit
5e2eb3588c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/include/arch/cc.h

+ 3 - 0
app/include/arch/cc.h

@@ -38,7 +38,10 @@
 #include "c_types.h"
 #include "ets_sys.h"
 #include "osapi.h"
+
+#ifndef EFAULT
 #define EFAULT 14
+#endif
 
 //#define LWIP_PROVIDE_ERRNO