Add missing header for QNX

<arpa/inet.h> header is required to compile this source. Without it, WARNING is generated.

mosquitto/lib/socks_mosq.c: In function 'socks5__send':
mosquitto/lib/socks_mosq.c:156:22: warning: implicit declaration of function 'inet_pton' [-Wimplicit-function-declaration]
   ipv4_pton_result = inet_pton(AF_INET, mosq->host, &addr_ipv4);

Signed-off-by: ChangJoon Lee <changjoon.lee@lge.com>
release/1.5
CJ Lee 5 years ago committed by Roger Light
parent 32c8221d43
commit ebc8b76d03

@ -23,6 +23,7 @@ Contributors:
# include <ws2tcpip.h>
#elif __QNX__
# include <sys/socket.h>
# include <arpa/inet.h>
# include <netinet/in.h>
#else
# include <arpa/inet.h>

Loading…
Cancel
Save