[CRIU] [PATCH] Drop <sys/user.h> to fix PAGE_SIZE declaration

Pavel Emelyanov xemul at parallels.com
Mon Apr 16 06:39:15 EDT 2012


On 04/16/2012 01:18 PM, Konstantin Khlebnikov wrote:
> On some systems PAGE_SIZE is declared as sysconf(_SC_PAGESIZE) in <sys/user.h>
> this is non-constant expression, so it cannot be used in type declarations.
> 
> This breaks compilation with a very non-obvious error message:
> 
>   CC       parasite-syscall.o
> In file included from parasite-syscall.c:30:0:
> ./include/parasite.h:90:8: error: variably modified ‘fds’ at file scope
> 
> crtools doesn't uses anything from <sys/user.h>, so we can drop its usage.
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov at openvz.org>

Applied



More information about the CRIU mailing list