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@xxxxxxxxx> --- 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@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers