Skip to content

Commit

Permalink
Added "lwip/errno.h" to netdb.c includes
Browse files Browse the repository at this point in the history
Defines EINVAL and ERANGE are used in the file but not included directly. When I try to use <sys/socket.h> and <arpa/inet.h> as LWIP_SOCKET_EXTERNAL_HEADERS it causes errors with this defines.
  • Loading branch information
RUSLoker authored and goldsimon committed Feb 19, 2024
1 parent e1b8080 commit 7c494b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/netdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#if LWIP_DNS && LWIP_SOCKET

#include "lwip/err.h"
#include "lwip/errno.h"
#include "lwip/mem.h"
#include "lwip/memp.h"
#include "lwip/ip_addr.h"
Expand Down

0 comments on commit 7c494b3

Please sign in to comment.