From: Nathan Lynch Subject: [PATCH] cr_test: include unistd.h for syscall numbers Date: Wed, 16 Sep 2009 04:05:24 -0500 Message-ID: <1253091924-15309-1-git-send-email-ntl@pobox.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-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org 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 --- 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 /* * 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