keytable: fix BPF protocol compilation on mips
PATCH 1/1 keytable: fix BPF protocol compilation on mips
clang -idirafter /usr/local/include -idirafter +/usr/lib/llvm-6.0/lib/clang/6.0.1/include -idirafter +/usr/include/mips64el-linux-gnuabi64 -idirafter /usr/include +-I../../../include -target bpf -O2 -c grundig.c
Quoted 5 lines
In file included from grundig.c:5:
In file included from../../../include/linux/lirc.h:10:
In file included from/usr/include/linux/types.h:9:
In file included from/usr/include/linux/posix_types.h:36:
In file included from
+/usr/include/mips64el-linux-gnuabi64/asm/posix_types.h:13:
Quoted 1 line
/usr/include/mips64el-linux-gnuabi64/asm/sgidefs.h:19:2: error: Use a Linux
+compiler or give up.
Quoted 1 line
#error Use a Linux compiler or give up.
This requires __linux__ to be defined.
--- utils/keytable/bpf_protocols/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/keytable/bpf_protocols/Makefile.am +1 -1
@@ -8,7 +8,7 @@ CLANG_SYS_INCLUDES := $(shell $(CLANG) -v -E - </dev/null 2>&1 \ | sed -n '/<...> search starts here:/,/End of search list./{ s| \(/.*\)|-idirafter \1|p }') %.o: %.c bpf_helpers.h - $(CLANG) $(CLANG_SYS_INCLUDES) -I$(top_srcdir)/include -target bpf -O2 -c $< + $(CLANG) $(CLANG_SYS_INCLUDES) -D__linux__ -I$(top_srcdir)/include -target bpf -O2 -c $< PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o
Signature · 1 line
2.17.2
Quoted 9 lines · Sean Young
clang -idirafter
/usr/local/include-idirafter(quoted diff) +3
-0+/usr/lib/llvm-6.0/lib/clang/6.0.1/include -idirafter +/usr/include/mips64el-linux-gnuabi64 -idirafter /usr/include +-I../../../include -target bpf -O2 -c grundig.cQuoted 5 lines
In file included from grundig.c:5:
In file included from../../../include/linux/lirc.h:10:
In file included from/usr/include/linux/types.h:9:
In file included from/usr/include/linux/posix_types.h:36:
In file included from
Quoted 6 lines
+/usr/include/mips64el-linux-gnuabi64/asm/posix_types.h:13:Quoted 1 line
/usr/include/mips64el-linux-gnuabi64/asm/sgidefs.h:19:2: error: Use a Linux+compiler or give up.
Quoted 1 line
#error Use a Linux compiler or give up.
This requires
__linux__to be defined.
Thanks! I uploaded a new Debian package. Let's see how it goes:
https://buildd.debian.org/status/package.php?p=v4l-utils
I'll pick up your other patches soon.
-Gregor