Skip to content

Commit

Permalink
* FIX [core/udp] Includes arpa/inet.h only on non windows platforms.
Browse files Browse the repository at this point in the history
Signed-off-by: wanghaemq <wangwei@emqx.io>
  • Loading branch information
wanghaEMQ committed May 16, 2024
1 parent c516b66 commit 2a9a12d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>

#ifndef _WIN32
#include <arpa/inet.h> // for endianness functions
#endif

#include <nng/nng.h>

Expand Down

0 comments on commit 2a9a12d

Please sign in to comment.