From: Remi Gacogne Date: Mon, 29 Aug 2016 15:54:03 +0000 (+0200) Subject: dnsdist: Fix compilation with clang when eBPF is enabled X-Git-Tag: dnsdist-1.1.0-beta1~3^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=508224f770046fe8c5540e2d24b186434f0bc268;p=pdns dnsdist: Fix compilation with clang when eBPF is enabled --- diff --git a/ext/libbpf/libbpf.h b/ext/libbpf/libbpf.h index 7293ac805..8002b7279 100644 --- a/ext/libbpf/libbpf.h +++ b/ext/libbpf/libbpf.h @@ -105,7 +105,7 @@ extern char bpf_log_buf[LOG_BUF_SIZE]; .dst_reg = 0, \ .src_reg = 0, \ .off = 0, \ - .imm = ((__u64) (IMM)) >> 32 }) + .imm = (__s32)(((__u64) (IMM)) >> 32) }) #ifndef BPF_PSEUDO_MAP_FD # define BPF_PSEUDO_MAP_FD 1