summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-02-06 20:54:45 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2019-02-10 11:34:55 +0100
commitc908a3ab8094a9d09248e9aedd9a977ed610330c (patch)
tree5ff04007eaab5308a82fce7791b55dffed58a53b /tests
parentaa33d738ec96f86671c2d4bb254d8e30a57213cc (diff)
downloadgnutls-c908a3ab8094a9d09248e9aedd9a977ed610330c.tar.gz
Use inet_pton() from gnulibtmp-gnulib-pton
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am5
-rw-r--r--tests/ip-utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 148f09fa4e..0c433b0370 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -238,6 +238,11 @@ gnutls_record_overhead_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(top_builddir)/gl \
$(NETTLE_CFLAGS)
+ip_utils_CPPFLAGS = $(AM_CPPFLAGS) \
+ -I$(top_srcdir)/gl \
+ -I$(top_builddir)/gl \
+ $(NETTLE_CFLAGS)
+
endif
fips_mode_pthread_LDADD = $(LDADD) -lpthread
diff --git a/tests/ip-utils.c b/tests/ip-utils.c
index b88b94de28..59977dfb9d 100644
--- a/tests/ip-utils.c
+++ b/tests/ip-utils.c
@@ -28,13 +28,13 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <arpa/inet.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#ifndef _WIN32
# include <cmocka.h>
# include <sys/socket.h>
-# include <arpa/inet.h>
#define BUILD_IN_TESTS
#include "../lib/x509/ip-in-cidr.h"