diff options
author | 2011-11-10 09:41:46 +0100 | |
---|---|---|
committer | 2011-11-10 09:41:46 +0100 | |
commit | a2dea4ea209a8fcf6837668bbe59f350931d1c07 (patch) | |
tree | a96200beb4488beefdea892d1c0c595c1be1f33c | |
parent | lxc: fix erroneous includes (diff) | |
download | lxc-a2dea4ea209a8fcf6837668bbe59f350931d1c07.tar.gz lxc-a2dea4ea209a8fcf6837668bbe59f350931d1c07.tar.bz2 lxc-a2dea4ea209a8fcf6837668bbe59f350931d1c07.zip |
lxc: use -iquote instead of -I
To avoid name collisions between local and system header
files. For example, if you try to include the <pty.h>
system file, you end up including the one from lxc...
Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r-- | src/lxc/Makefile.am | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 924cf1d..3cd0f57 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -53,7 +53,12 @@ liblxc_so_SOURCES = \ \ utmp.c utmp.h -AM_CFLAGS=-I$(top_srcdir)/src \ +DEFAULT_INCLUDES = \ + -iquote $(builddir) \ + -iquote $(srcdir) \ + -iquote $(top_builddir)/src + +AM_CFLAGS = \ -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \ -DLXCPATH=\"$(LXCPATH)\" \ -DLXCINITDIR=\"$(LXCINITDIR)\" |