]> granicus.if.org Git - esp-idf/commitdiff
FD_ZERO: Fix a compilation warning
authorPiyush Shah <piyush@espressif.com>
Wed, 14 Feb 2018 13:57:02 +0000 (19:27 +0530)
committerPiyush Shah <piyush@espressif.com>
Thu, 22 Feb 2018 08:40:04 +0000 (14:10 +0530)
Definition of memset is not found if string.h is not included anywhere

Signed-off-by: Piyush Shah <piyush@espressif.com>
components/lwip/include/lwip/lwip/sockets.h

index 4dd013bcfcdd8d53d0fa11cdb77d4beca02364ae..d8e4c7ffbebd7bdfea60fe36cdb020aa86d0da41 100755 (executable)
@@ -39,6 +39,7 @@
 #if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */
 
 #include <stddef.h> /* for size_t */
+#include <string.h> /* for FD_ZERO */
 
 #include "lwip/ip_addr.h"
 #include "lwip/err.h"