Commit 55412e0d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: Use -iquote for headers lookup

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"

being searched in known place. In particular on
some machines it it already produced problems.

This btw revealved a problem in cr-dump.c -- we've
had #include <parasite.h> there. Fix it.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Tested-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 03b95b57
...@@ -68,7 +68,7 @@ ARCH_DIR := arch/$(ARCH) ...@@ -68,7 +68,7 @@ ARCH_DIR := arch/$(ARCH)
$(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported")) $(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported"))
CFLAGS += -Iinclude -Ipie -I. -I$(ARCH_DIR) CFLAGS += -iquote include -iquote pie -iquote . -iquote $(ARCH_DIR)
CFLAGS += -iquote $(ARCH_DIR)/include -fno-strict-aliasing CFLAGS += -iquote $(ARCH_DIR)/include -fno-strict-aliasing
LIBS := -lrt -lpthread -lprotobuf-c LIBS := -lrt -lpthread -lprotobuf-c
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <parasite.h>
#include <fcntl.h> #include <fcntl.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment