From 00e2c4e6849adc1b9cc8b9daf9069d67ff086dc3 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 19 Dec 2017 21:12:55 +0100 Subject: ptunnel-ng: * fixed missing conditionaled compile for pcap * ported to mingw64 --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 4e802cc..5d51807 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,12 +2,16 @@ bin_PROGRAMS = ptunnel-ng man8_MANS = ptunnel-ng.8 ptunnel_ng_CFLAGS = -Wall +ptunnel_ng_LDADD = if HAVE_PCAP ptunnel_ng_CFLAGS += -DHAVE_PCAP=1 endif if HAVE_SELINUX ptunnel_ng_CFLAGS += -DHAVE_SELINUX=1 endif +if IS_WINDOWS +ptunnel_ng_LDADD += -lws2_32 +endif ptunnel_ng_SOURCES = \ md5.c \ -- cgit v1.2.3