* [PATCH 1/7] cr_test: include unistd.h for syscall numbers
@ 2009-10-12 19:38 Matt Helsley
[not found] ` <1255376302-11022-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Matt Helsley @ 2009-10-12 19:38 UTC (permalink / raw)
To: Serge E. Hallyn
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
Nathan Lynch
Extend this change to the rewrite-cr-header.sh script.
Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: Nathan Lynch <ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
---
| 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
--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 <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
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-13 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 19:38 [PATCH 1/7] cr_test: include unistd.h for syscall numbers Matt Helsley
[not found] ` <1255376302-11022-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-13 22:52 ` Serge E. Hallyn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox