Skip to content

Commit

Permalink
Enable HAS_SET_DIRECTION_ENABLED for regular build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fquinner authored Aug 17, 2020
1 parent 1bd1927 commit 83b206e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Pcap++/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83b206e

Please sign in to comment.