From f0659826050f3fe92e78987dbc1790c47e76eb98 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 31 May 2020 07:23:42 +0200 Subject: [PATCH] build: fix syscall names extraction --- src/daemon/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 740a0588..3e764492 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -107,7 +107,7 @@ BUILT_SOURCES += syscall-names.h CLEANFILES += syscall-names.h syscall-names.h.tmp syscall-names.h: $(AM_V_GEN) - $(AM_V_at)echo "#include " | $(CPP) -dM > $@.tmp ;\ + $(AM_V_at)echo "#include " | $(CPP) -dM - > $@.tmp ;\ echo "static const char *syscall_names[] = {" > $@ ;\ grep '^#define __NR_' $@.tmp | \ LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([0-9]+)(.*)/ [\2] = "\1",/p' >> $@ ;\ -- 2.39.5