procd: fix seccomp build on some architectures
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Aug 2015 20:37:47 +0000 (20:37 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Aug 2015 20:37:47 +0000 (20:37 +0000)
commita295dc7d7330510f2cf7e5efb4c590a41f877e72
treed732eeb29ece34915a2aa5418be14eba93ca0ee0
parent45bb1274e2777e074061fb7344b9bb434fdff003
procd: fix seccomp build on some architectures

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: 46612
package/system/procd/Makefile