kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 69f98ef158a064073f9aaa18af77ff2c206d03a2
parent 68e0697f2e82ec8d069f6ae84841f36c3c57299d
Author: Joris Vink <joris@coders.se>
Date:   Mon, 18 Aug 2014 18:56:22 +0200

Add root/src/includes as an include path when building

Diffstat:
src/cli.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -828,12 +828,13 @@ cli_compile_cfile(void *arg) { int idx; struct cfile *cf = arg; - char *args[20], *ipath; + char *args[20], *ipath[2]; #if defined(KORE_USE_PGSQL) char *ppath; #endif - (void)cli_vasprintf(&ipath, "-I%s/src", rootdir); + (void)cli_vasprintf(&ipath[0], "-I%s/src", rootdir); + (void)cli_vasprintf(&ipath[1], "-I%s/src/includes", rootdir); /* * These compiler options should be settable @@ -841,7 +842,8 @@ cli_compile_cfile(void *arg) */ idx = 0; args[idx++] = compiler; - args[idx++] = ipath; + args[idx++] = ipath[0]; + args[idx++] = ipath[1]; args[idx++] = "-I/usr/local/include"; #if defined(KORE_USE_PGSQL)