summaryrefslogtreecommitdiffstats
path: root/python_modules/demarshal.py
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-19 15:41:07 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-04-16 16:47:55 +0200
commit90a1240f274b55ae0b406e8f1edaadaa87748bec (patch)
tree58d63de099021c1137f0980b38bc88c288068514 /python_modules/demarshal.py
parent7ea1cc54b1cdc105e086c154cc15b2541937c7b7 (diff)
downloadspice-common-90a1240f274b55ae0b406e8f1edaadaa87748bec.tar.gz
spice-common-90a1240f274b55ae0b406e8f1edaadaa87748bec.tar.xz
spice-common-90a1240f274b55ae0b406e8f1edaadaa87748bec.zip
Use #include "common/..." in (de)marshallers
Now that they are created in $builddir, their includes will need to refer to files in $srcdir, which can be different. It's cleaner to add -I $(top_srcdir)/spice-common/ to modules using spice-common rather than having -I $(top_srcdir)/spice-common/common which would could create header collisions.
Diffstat (limited to 'python_modules/demarshal.py')
-rw-r--r--python_modules/demarshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py
index cf48d74..794cd25 100644
--- a/python_modules/demarshal.py
+++ b/python_modules/demarshal.py
@@ -1250,7 +1250,7 @@ def write_includes(writer):
writer.writeln("#include <stdio.h>")
writer.writeln("#include <spice/protocol.h>")
writer.writeln("#include <spice/macros.h>")
- writer.writeln('#include "mem.h"')
+ writer.writeln('#include "common/mem.h"')
writer.newline()
writer.writeln("#ifdef _MSC_VER")
writer.writeln("#pragma warning(disable:4101)")