From 83b206e3affdd630ad05548ed083a6b75f06fbd7 Mon Sep 17 00:00:00 2001 From: fquinner Date: Mon, 17 Aug 2020 11:36:37 +0100 Subject: [PATCH] Enable HAS_SET_DIRECTION_ENABLED for regular build It looks like the option to enable pcap direction doesn't get compiled in during a manual build (unless I have missed something). The option is a gmake variable and is indeed promoted in Tests/Pcap++Test/Makefile, but never seemed to get promoted to a compiler macro argument in the standard Makefile. This change should correct this. --- Pcap++/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Pcap++/Makefile b/Pcap++/Makefile index 251258f1ae..092022d6dd 100755 --- a/Pcap++/Makefile +++ b/Pcap++/Makefile @@ -71,6 +71,10 @@ ifdef HAS_PCAP_IMMEDIATE_MODE DEPS += -DHAS_PCAP_IMMEDIATE_MODE endif +ifdef HAS_SET_DIRECTION_ENABLED +PCAPPP_BUILD_FLAGS += -DHAS_SET_DIRECTION_ENABLED +endif + ifdef USE_DPDK PCAPPP_BUILD_FLAGS += -msse -msse2 -msse3 -mssse3 endif