scripts/checksyscalls.sh: fix for non-gnu sed

Make the checksyscalls script work even on systems where sed is non-gnu.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by Thomas Volpini and committed by Sam Ravnborg bd8f89ff 13797b77

+2 -2
+2 -2
scripts/checksyscalls.sh
··· 113 113 } 114 114 115 115 syscall_list() { 116 - sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\ 116 + sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\ 117 117 \#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\ 118 118 \#warning syscall \1 not implemented\ 119 - \#endif/p }' $1 119 + \#endif/p' $1 120 120 } 121 121 122 122 (ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \