Skip to content

Commit

Permalink
lwip: Changed to C linkage for fixing bug when using mixed C/C++ code
Browse files Browse the repository at this point in the history
Merges #5900
  • Loading branch information
mathiasbredholt authored and david-cermak committed Sep 29, 2020
1 parent 56403bd commit 8a10292
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/lwip/port/esp32/include/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,17 @@

#include "lwip/netdb.h"

#ifdef __cplusplus
extern "C" {
#endif

#ifdef ESP_PLATFORM
int getnameinfo(const struct sockaddr *addr, socklen_t addrlen,
char *host, socklen_t hostlen,
char *serv, socklen_t servlen, int flags);

#endif

#ifdef __cplusplus
}
#endif

0 comments on commit 8a10292

Please sign in to comment.