]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix AF_XDP (XSK) detection
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Sep 2023 10:35:09 +0000 (12:35 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Jan 2024 11:54:18 +0000 (12:54 +0100)
pdns/dnsdistdist/m4/pdns_with_xsk.m4

index a5f61dd5249e90a261e226cf727af8aabdaa3ab2..655d410f808f9acd88d1053da4edaea5f15b0d51 100644 (file)
@@ -17,6 +17,7 @@ AC_DEFUN([PDNS_WITH_XSK],[
       ], [:])
     ])
   ])
+  AC_DEFINE([HAVE_XSK], [test x"$BPF_LIBS" != "x" -a x"$XDP_LIBS" != "x"], [Define to 1 if you have AF_XDP (XSK) support enabled])
   AM_CONDITIONAL([HAVE_XSK], [test x"$BPF_LIBS" != "x" -a x"$XDP_LIBS" != "x"])
   AS_IF([test "x$with_xsk" = "xyes"], [
     AS_IF([test x"$BPF_LIBS" = "x" -o x"$XDP_LIBS" = "x" ], [