Skip to content

Commit 8f94f3e

Browse files
committed
bugfix: make declaration in .h file, and make definition in .c file.
1 parent 04a769b commit 8f94f3e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ngx_http_lua_event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef struct {
1919
} ngx_http_lua_event_actions_t;
2020

2121

22-
ngx_http_lua_event_actions_t ngx_http_lua_event_actions;
22+
extern ngx_http_lua_event_actions_t ngx_http_lua_event_actions;
2323

2424
extern ngx_http_lua_event_actions_t ngx_http_lua_epoll;
2525
extern ngx_http_lua_event_actions_t ngx_http_lua_poll;

src/ngx_http_lua_initworkerby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include "ngx_http_lua_event.h"
1717

1818

19+
ngx_http_lua_event_actions_t ngx_http_lua_event_actions;
20+
1921
static u_char *ngx_http_lua_log_init_worker_error(ngx_log_t *log,
2022
u_char *buf, size_t len);
2123

0 commit comments

Comments
 (0)