procd: fix seccomp build on some architectures
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 17 Aug 2015 18:59:00 +0000 (18:59 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 17 Aug 2015 18:59:00 +0000 (18:59 +0000)
commit87f3c4a75d181d55a86eabbe23ba4199e09b4df2
treed13b4739c41d4db8b57d7def164432633b405f93
parenta7d350222028b4b63b87d3c474a1a41252fbceb0
procd: fix seccomp build on some architectures

Backport of r46612.

fix generating syscall-names.h

Sometimes the syscall number is not defined with a number but with an
offset to an other syscall and then make_syscall_h.sh created some
broken header file.

For example the bit/syscall.h from musl for i386 has this:

  #define __NR_timer_create     259
  #define __NR_timer_settime    (__NR_timer_create+1)

With this patch the resulting array looks like this:

 [259] = "timer_create",
 [(__NR_timer_create+1)] = "timer_settime",

This closes #20195.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46679
package/system/procd/Makefile