Defer to unistd.h for definitions of basic types and values. In the future, when the __NR_checkpoint and __NR_restart values are defined via unistd.h we should use those rather than define our own. This also requires checking for those definitions before error'ing out. Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx> --- scripts/extract-headers.sh | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/scripts/extract-headers.sh b/scripts/extract-headers.sh index 19f63b4..c4a596e 100755 --- a/scripts/extract-headers.sh +++ b/scripts/extract-headers.sh @@ -126,6 +126,7 @@ cat - > "${OUTPUT_INCLUDES}/linux/checkpoint_hdr.h" <<-EOFOO #ifndef _CHECKPOINT_CKPT_HDR_H_ #define _CHECKPOINT_CKPT_HDR_H_ +#include <unistd.h> EOFOO do_cpp "${KERNELSRC}/include/linux/checkpoint_hdr.h" "_CHECKPOINT_CKPT_HDR_H_" \ @@ -173,6 +174,7 @@ cat - <<-EOFOE #ifndef _LINUX_CHECKPOINT_H_ #define _LINUX_CHECKPOINT_H_ +#include <unistd.h> EOFOE do_cpp "${KERNELSRC}/include/linux/checkpoint.h" "_LINUX_CHECKPOINT_H_" @@ -196,8 +198,12 @@ done cat - <<-EOFOFOE #else + +#if !defined(__NR_checkpoint) || !defined(__NR_restart) #error "Architecture does not have definitons for __NR_(checkpoint|restart)" #endif + +#endif #endif /* _LINUX_CHECKPOINT_H_ */ EOFOFOE -- 1.6.3.3 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers