]> granicus.if.org Git - esp-idf/commit
lwip: fix duplicate definition of O_NONBLOCK
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 8 Nov 2016 01:05:05 +0000 (09:05 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 8 Nov 2016 12:17:08 +0000 (20:17 +0800)
commit3f8d9d71e2c10e5ebdf3b07f3d527d74411bc35a
treefdd19004a2c08751f50f43978c265cfff2a1f396
parentaa0cd0ab474e6ba27dced833ef5ea440a3eabeb2
lwip: fix duplicate definition of O_NONBLOCK

LwIP will define O_NONBLOCK in sockets.h if it isn't defined yet.
If sys/fcntl.h is included after socket.h, there will be duplicate definition.
Work around by including sys/fcntl.h into lwipopts.h.

https://github.com/espressif/esp-idf/issues/75
components/lwip/include/lwip/port/lwipopts.h