Avoid nxt_go_process_t redefinition warning.
This commit is contained in:
@@ -12,7 +12,11 @@
|
|||||||
#include <nxt_port_memory_int.h>
|
#include <nxt_port_memory_int.h>
|
||||||
|
|
||||||
typedef struct nxt_port_mmap_header_s nxt_port_mmap_header_t;
|
typedef struct nxt_port_mmap_header_s nxt_port_mmap_header_t;
|
||||||
|
|
||||||
|
#ifndef _NXT_GO_PROCESS_T_DEFINED_
|
||||||
|
#define _NXT_GO_PROCESS_T_DEFINED_
|
||||||
typedef struct nxt_go_process_s nxt_go_process_t;
|
typedef struct nxt_go_process_s nxt_go_process_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
nxt_port_mmap_header_t *
|
nxt_port_mmap_header_t *
|
||||||
nxt_go_port_mmap_get(nxt_go_process_t *process, nxt_port_id_t port_id,
|
nxt_go_port_mmap_get(nxt_go_process_t *process, nxt_port_id_t port_id,
|
||||||
|
|||||||
@@ -11,7 +11,10 @@
|
|||||||
#include <nxt_main.h>
|
#include <nxt_main.h>
|
||||||
#include "nxt_go_mutex.h"
|
#include "nxt_go_mutex.h"
|
||||||
|
|
||||||
|
#ifndef _NXT_GO_PROCESS_T_DEFINED_
|
||||||
|
#define _NXT_GO_PROCESS_T_DEFINED_
|
||||||
typedef struct nxt_go_process_s nxt_go_process_t;
|
typedef struct nxt_go_process_s nxt_go_process_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct nxt_go_process_s {
|
struct nxt_go_process_s {
|
||||||
nxt_pid_t pid;
|
nxt_pid_t pid;
|
||||||
|
|||||||
@@ -12,8 +12,10 @@
|
|||||||
#include <nxt_application.h>
|
#include <nxt_application.h>
|
||||||
#include <nxt_port_memory_int.h>
|
#include <nxt_port_memory_int.h>
|
||||||
|
|
||||||
|
#ifndef _NXT_GO_PROCESS_T_DEFINED_
|
||||||
|
#define _NXT_GO_PROCESS_T_DEFINED_
|
||||||
typedef struct nxt_go_process_s nxt_go_process_t;
|
typedef struct nxt_go_process_s nxt_go_process_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct nxt_go_msg_s nxt_go_msg_t;
|
typedef struct nxt_go_msg_s nxt_go_msg_t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user