summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-10-05 08:48:57 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-10-05 08:55:05 +0200
commit0fa9bc9e065029b29f9cecad9f37bfb031389c45 (patch)
tree48a0ee412b0ac441d3444a0bd3239bc421a8e1e5 /src
parent8d08604a6c4b3c4b3d0e6f7599520687dd514bc5 (diff)
downloadgnutls-0fa9bc9e065029b29f9cecad9f37bfb031389c45.tar.gz
certtool: include arpa/inet.h unconditionally
That is because we use inet_pton() which is either provided by the OS, or by gnulib.
Diffstat (limited to 'src')
-rw-r--r--src/certtool-cfg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/certtool-cfg.c b/src/certtool-cfg.c
index f4f5ca3045..186acfa308 100644
--- a/src/certtool-cfg.c
+++ b/src/certtool-cfg.c
@@ -45,11 +45,13 @@
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
-#include <arpa/inet.h>
#elif HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
+/* From gnulib for inet_pton() */
+#include <arpa/inet.h>
+
/* Gnulib portability files. */
#include <getpass.h>
#include "certtool-common.h"