From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH] cr_test: include unistd.h for syscall numbers Date: Wed, 16 Sep 2009 14:49:33 -0500 Message-ID: <20090916194933.GA16025@us.ibm.com> References: <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: Content-Disposition: inline In-Reply-To: <1253091924-15309-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> 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: Nathan Lynch Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org Quoting Nathan Lynch (ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.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 Applied. thanks, -serge > --- > 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