Skip to content

Commit 640fd1f

Browse files
add include of netx dns header
1 parent 809e613 commit 640fd1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/mqttnet.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ static int NetRead(void *context, byte* buf, int buf_len,
383383
/* -------------------------------------------------------------------------- */
384384
#elif defined(HAVE_NETX)
385385

386+
#ifndef WOLFMQTT_NO_NETX_DNS
387+
/* include the NetX DNS addon header */
388+
#include "nxd_dns.h"
389+
#endif
390+
386391
static int NetDisconnect(void *context)
387392
{
388393
SocketContext *sock = (SocketContext*)context;

0 commit comments

Comments
 (0)