From: Matt Helsley Subject: [PATCH 1/7] cr_test: include unistd.h for syscall numbers Date: Mon, 12 Oct 2009 12:38:22 -0700 Message-ID: <1255376302-11022-1-git-send-email-matthltc@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Nathan Lynch List-Id: containers.vger.kernel.org Extend this change to the rewrite-cr-header.sh script. Signed-off-by: Matt Helsley Cc: Nathan Lynch --- rewrite-cr-header.sh | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rewrite-cr-header.sh b/rewrite-cr-header.sh index 97f39fc..62ad5b5 100755 --- a/rewrite-cr-header.sh +++ b/rewrite-cr-header.sh @@ -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 +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 -- 1.5.6.3