diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 70a1f05dd4..afa6cfc852 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1370,6 +1370,7 @@ shared_libnacd_la_LIBADD = shared/libcrbtree.la shared_libnacd_la_CPPFLAGS = \ -D_GNU_SOURCE \ + -DSO_ATTACH_BPF=50 \ $(CODE_COVERAGE_CFLAGS) \ $(SANITIZER_LIB_CFLAGS) \ -I$(srcdir)/shared/c-list/src \ @@ -1380,12 +1381,17 @@ shared_libnacd_la_CPPFLAGS = \ shared_libnacd_la_SOURCES = \ shared/n-acd/src/n-acd.c \ shared/n-acd/src/n-acd.h \ - shared/n-acd/src/n-acd-bpf.c \ shared/n-acd/src/n-acd-private.h \ shared/n-acd/src/n-acd-probe.c \ shared/n-acd/src/util/timer.c \ shared/n-acd/src/util/timer.h +if WITH_EBPF +shared_libnacd_la_SOURCES += shared/n-acd/src/n-acd-bpf.c +else +shared_libnacd_la_SOURCES += shared/n-acd/src/n-acd-bpf-fallback.c +endif + EXTRA_DIST += shared/c-list/src/c-list.h ############################################################################### |