[Devel] [PATCH] cr_test: include unistd.h for syscall numbers

Nathan Lynch ntl at pobox.com
Wed Sep 16 02:05:24 PDT 2009


Instead of duplicating the checkpoint/restart/clone_with_pids system
call numbers for powerpc in cr.h, just #include asm/unistd.h and
remove the #error; the build will fail intelligibly if those constants
are undefined.

(also add guards to prevent multiple inclusion)

Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
 cr.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/cr.h b/cr.h
index f24b7b0..a7dce6a 100644
--- a/cr.h
+++ b/cr.h
@@ -1,6 +1,9 @@
 /* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */
 
+#ifndef _LINUX_CHECKPOINT_H_ 
 #define _LINUX_CHECKPOINT_H_ 
+
+#include <asm/unistd.h>
 /*
  *  Generic checkpoint-restart
  *
@@ -90,6 +93,6 @@
 /* x86_64 unsupported. */
 /* x86_64 unsupported. */
 /* xtensa unsupported. */
-#else
-#error "Architecture does not have definitons for __NR_(checkpoint|restart)"
+#endif
+
 #endif
-- 
1.6.0.6

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list