From: Vincent Bernat Date: Sun, 31 May 2020 05:23:42 +0000 (+0200) Subject: build: fix syscall names extraction X-Git-Tag: 1.0.6~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0659826050f3fe92e78987dbc1790c47e76eb98;p=thirdparty%2Flldpd.git build: fix syscall names extraction --- 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' >> $@ ;\