summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/nxt_go_run_ctx.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-12-01 16:57:30 +0300
committerMax Romanov <max.romanov@nginx.com>2017-12-01 16:57:30 +0300
commit40eb1f8b9b2a76d76ef6a4a094bf8192a44cbe41 (patch)
treef8e1b7f97762d6c36deeadca1b503dc91aa3ce12 /src/go/unit/nxt_go_run_ctx.c
parentffb1c68609620824a88e0573e13f91ce0e810bf2 (diff)
downloadunit-40eb1f8b9b2a76d76ef6a4a094bf8192a44cbe41.tar.gz
unit-40eb1f8b9b2a76d76ef6a4a094bf8192a44cbe41.tar.bz2
Making Go package source distributable and renaming to 'nginx/unit'.
All header files are copied to Go package sources. As the result, package can be (re-)build when required. This closes #23 issue on GitHub.
Diffstat (limited to 'src/go/unit/nxt_go_run_ctx.c')
-rw-r--r--src/go/unit/nxt_go_run_ctx.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/go/unit/nxt_go_run_ctx.c b/src/go/unit/nxt_go_run_ctx.c
index 68df8f49..902872ce 100644
--- a/src/go/unit/nxt_go_run_ctx.c
+++ b/src/go/unit/nxt_go_run_ctx.c
@@ -4,9 +4,6 @@
* Copyright (C) NGINX, Inc.
*/
-#ifndef NXT_CONFIGURE
-
-
#include "nxt_go_run_ctx.h"
#include "nxt_go_log.h"
#include "nxt_go_process.h"
@@ -14,9 +11,10 @@
#include "nxt_go_mutex.h"
#include "nxt_go_port_memory.h"
+#include "_cgo_export.h"
+
#include <nxt_port_memory_int.h>
#include <nxt_main.h>
-#include <nxt_go_gen.h>
static nxt_int_t
@@ -530,6 +528,3 @@ nxt_go_ctx_read_raw(nxt_go_run_ctx_t *ctx, void *dst, size_t size)
return res;
}
-
-
-#endif /* NXT_CONFIGURE */