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

Andrew Vagin avagin at gmail.com
Tue Feb 19 03:20:04 EST 2013


On Tue, Feb 19, 2013 at 11:46:32AM +0400, Cyrill Gorcunov wrote:
> On Tue, Feb 19, 2013 at 11:14:56AM +0400, Andrew Vagin wrote:
> > On Tue, Feb 19, 2013 at 01:53:25AM +0400, Cyrill Gorcunov wrote:
> > > 
> > > Some of ours headers (such as syscall.h) are
> > > clashes with system headers names. So we need
> > > to be sure that the headers we include as
> > > 
> > >  | #include "something.h"
> > 
> > Could we forbid to include such files from global directories?
> 
> 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.


More information about the CRIU mailing list