cr_test: include unistd.h for syscall numbers
PATCH 1/7 cr_test: include unistd.h for syscall numbers
Extend this change to the rewrite-cr-header.sh script.
Signed-off-by Matt Helsley <matthltc-r/[email protected]>
Cc Nathan Lynch <[email protected]>
--- rewrite-cr-header.sh | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)
rewrite-cr-header.sh +9 -2
@@ -42,7 +42,11 @@ fi COND='#if' set -e -echo '/* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */' +cat - <<-EOFOEOF +/* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */ +#ifndef _LINUX_CHECKPOINT_H_ +#include <asm/unistd.h> +EOFOEOF # # Include non-__KERNEL__ sections of include/linux/checkpoint.h using
@@ -84,4 +88,7 @@ while read UNISTDH ; do sed -e 's/^[[:space:]]*#define[[:space:]]\+__NR_\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\).*$/#ifndef __NR_\1\n#define __NR_\1 \2\n#endif\n/' COND='#elif' done -echo -e '#else\n#error "Architecture does not have definitons for __NR_(checkpoint|restart)"\n#endif' +cat - <<-EOFOEOF +#endif /* arch-specific sections */ +#endif /* _LINUX_CHECKPOINT_H_ */ +EOFOEOF
Signature · 1 line
1.5.6.3
A message that is not in the archive (sent off-list or not yet received): 1255376302-11022-1-git-send-email-matthltc-r/[email protected]
Quoted 3 lines · Matt Helsley
Extend this change to the
rewrite-cr-header.shscript.Signed-off-by Matt Helsley <matthltc-r/[email protected]>
Thanks - all applied, plus one trivial patch to make it compile with rhel5.3's older headers.
Now that I'm typing that, it occurs to me that i suppose i should be required to recompile glibc with new kernel-headers?
Hmm....
-serge