Skip to content

Commit

Permalink
Add missing header for QNX
Browse files Browse the repository at this point in the history
<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 <[email protected]>
  • Loading branch information
Elastino authored and ralight committed Oct 21, 2020
1 parent 32c8221 commit ebc8b76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/socks_mosq.c
Expand Up @@ -23,6 +23,7 @@ and the Eclipse Distribution License is available at
# include <ws2tcpip.h>
#elif __QNX__
# include <sys/socket.h>
# include <arpa/inet.h>
# include <netinet/in.h>
#else
# include <arpa/inet.h>
Expand Down

0 comments on commit ebc8b76

Please sign in to comment.