Skip to content

Commit 76c4a37

Browse files
committed
Fix duplicate symbol issue
1 parent 3a00d2d commit 76c4a37

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

nginx/ngx_python_module.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#include "ngx_python_module.h"
1+
#include <ngx_config.h>
2+
#include <ngx_core.h>
3+
#include <ngx_http.h>
4+
#include <Python.h>
5+
#include "nginx.h"
6+
27

38
static ngx_int_t ngx_python_init_process(ngx_cycle_t *cycle);
49
static void ngx_python_exit_process(ngx_cycle_t *cycle);

nginx/ngx_python_module.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
#include <ngx_config.h>
2-
#include <ngx_core.h>
3-
#include <ngx_http.h>
4-
#include <Python.h>
5-
#include "nginx.h"
6-
7-
ngx_module_t ngx_python_module;
1+
extern ngx_module_t ngx_python_module;

0 commit comments

Comments
 (0)