summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/nxt_go_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-10-19 18:20:08 +0300
committerMax Romanov <max.romanov@nginx.com>2017-10-19 18:20:08 +0300
commitc8a8a7c2120e276777f97dcee6d489788417792a (patch)
treeee4c2a16567beecd382a0c61672b8812b10f764f /src/go/unit/nxt_go_process.c
parentf9f852008fcbe94c099d9d42cef010d74fea2574 (diff)
downloadunit-c8a8a7c2120e276777f97dcee6d489788417792a.tar.gz
unit-c8a8a7c2120e276777f97dcee6d489788417792a.tar.bz2
Fixing Go package build.
Go package build was broken by change 365:28b2a468be43.
Diffstat (limited to 'src/go/unit/nxt_go_process.c')
-rw-r--r--src/go/unit/nxt_go_process.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/go/unit/nxt_go_process.c b/src/go/unit/nxt_go_process.c
index 736177ea..eb29cee1 100644
--- a/src/go/unit/nxt_go_process.c
+++ b/src/go/unit/nxt_go_process.c
@@ -11,6 +11,7 @@
#include "nxt_go_array.h"
#include "nxt_go_mutex.h"
#include "nxt_go_log.h"
+#include "nxt_go_port_memory.h"
#include <nxt_port_memory_int.h>
@@ -89,9 +90,9 @@ nxt_go_get_process(nxt_pid_t pid)
process->pid = pid;
nxt_go_mutex_create(&process->incoming_mutex);
- nxt_go_array_init(&process->incoming, 1, sizeof(nxt_port_mmap_t));
+ nxt_go_array_init(&process->incoming, 1, sizeof(nxt_go_port_mmap_t));
nxt_go_mutex_create(&process->outgoing_mutex);
- nxt_go_array_init(&process->outgoing, 1, sizeof(nxt_port_mmap_t));
+ nxt_go_array_init(&process->outgoing, 1, sizeof(nxt_go_port_mmap_t));
}
return process;
@@ -101,10 +102,10 @@ nxt_go_get_process(nxt_pid_t pid)
void
nxt_go_new_incoming_mmap(nxt_pid_t pid, nxt_fd_t fd)
{
- void *mem;
- struct stat mmap_stat;
- nxt_port_mmap_t *port_mmap;
- nxt_go_process_t *process;
+ void *mem;
+ struct stat mmap_stat;
+ nxt_go_process_t *process;
+ nxt_go_port_mmap_t *port_mmap;
process = nxt_go_get_process(pid);