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

Serge E. Hallyn serue at us.ibm.com
Wed Sep 16 12:49:33 PDT 2009


Quoting Nathan Lynch (ntl at pobox.com):
> 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>

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 <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


More information about the Containers mailing list