[CRIU] [PATCH 1/3] make: Use -iquote for headers lookup

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 19 03:27:01 EST 2013


On Tue, Feb 19, 2013 at 12:20:04PM +0400, Andrew Vagin wrote:
> > 
> > Not sure I follow, mind to elaborate?
> 
> [avagin at localhost ~]$ cat test2.c
> #define _GNU_SOURCE
> #include "stdio.h"
> 
> #define PTRACE_PEEKSIGINFO_FLAGS_MASK (~0UL << 16)
> 
> int
> main(int argc, char *argv[])
> {
> 	printf("%lx\n", PTRACE_PEEKSIGINFO_FLAGS_MASK);
> 	return 0;
> }
> [avagin at localhost ~]$ gcc -Wall -iquote . test2.c
> 
> I want to get an error in this case, because stdio.h isn't in a current
> diretory.

This means we need to change the inclusion behaviour, iow add -nostdinc
argument, but this argument as well removes standart inclusion lookup path.
That being said this is not that easy to unweave but i'll think of.

	Cyrill


More information about the CRIU mailing list