Skip to content

Commit

Permalink
Merge pull request #496 from yyamano/issue-495
Browse files Browse the repository at this point in the history
Add missing nginx headers to follow nginx's way. Fixed #495
  • Loading branch information
matsumotory authored Jul 19, 2022
2 parents b9febb8 + c601986 commit 8e6c75b
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/http/ngx_http_mruby_async.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_HTTP_MRUBY_ASYNC_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>
Expand Down
4 changes: 4 additions & 0 deletions src/http/ngx_http_mruby_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef NGX_HTTP_MRUBY_CONNECTION_H
#define NGX_HTTP_MRUBY_CONNECTION_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>

void ngx_mrb_conn_class_init(mrb_state *mrb, struct RClass *class);
Expand Down
1 change: 1 addition & 0 deletions src/http/ngx_http_mruby_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_HTTP_MRUBY_CORE_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>
Expand Down
4 changes: 4 additions & 0 deletions src/http/ngx_http_mruby_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef NGX_HTTP_MRUBY_FILTER_H
#define NGX_HTTP_MRUBY_FILTER_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>

void ngx_mrb_filter_class_init(mrb_state *mrb, struct RClass *class);
Expand Down
1 change: 1 addition & 0 deletions src/http/ngx_http_mruby_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_HTTP_MRUBY_INIT_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>
Expand Down
1 change: 1 addition & 0 deletions src/http/ngx_http_mruby_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_HTTP_MRUBY_REQUEST_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>
Expand Down
4 changes: 4 additions & 0 deletions src/http/ngx_http_mruby_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef NGX_HTTP_MRUBY_SERVER_H
#define NGX_HTTP_MRUBY_SERVER_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>

void ngx_mrb_server_class_init(mrb_state *mrb, struct RClass *class);
Expand Down
2 changes: 2 additions & 0 deletions src/http/ngx_http_mruby_ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#define NGX_HTTP_MRUBY_SSL_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#if (NGX_HTTP_SSL)

Expand Down
7 changes: 4 additions & 3 deletions src/http/ngx_http_mruby_upstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
#ifndef NGX_HTTP_MRUBY_UPSTREAM_H
#define NGX_HTTP_MRUBY_UPSTREAM_H

#include <nginx.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#if (nginx_version > 1007999)
#define NGX_USE_MRUBY_UPSTREAM
#endif
Expand All @@ -20,8 +23,6 @@ void ngx_mrb_upstream_class_init(mrb_state *mrb, struct RClass *class);

#ifdef NGX_HTTP_MRUBY_UPSTREAM_C

#include <ngx_config.h>

/* reference from src/http/modules/ngx_http_upstream_keepalive_module.c */

/*
Expand Down
1 change: 1 addition & 0 deletions src/http/ngx_http_mruby_var.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_HTTP_MRUBY_VAR_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>

#include <mruby.h>
Expand Down
1 change: 1 addition & 0 deletions src/stream/ngx_stream_mruby_async.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_STREAM_MRUBY_ASYNC_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>

#include <mruby.h>
Expand Down
4 changes: 4 additions & 0 deletions src/stream/ngx_stream_mruby_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef NGX_STREAM_MRUBY_CONNECTION_H
#define NGX_STREAM_MRUBY_CONNECTION_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>

#include <mruby.h>

void ngx_stream_mrb_conn_class_init(mrb_state *mrb, struct RClass *class);
Expand Down
1 change: 1 addition & 0 deletions src/stream/ngx_stream_mruby_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define NGX_STREAM_MRUBY_CORE_H

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>

#include <mruby.h>
Expand Down
1 change: 1 addition & 0 deletions src/stream/ngx_stream_mruby_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>

#include <mruby.h>

Expand Down
2 changes: 1 addition & 1 deletion src/stream/ngx_stream_mruby_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef NGX_STREAM_MRUBY_MODULE_H
#define NGX_STREAM_MRUBY_MODULE_H

#include <nginx.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>

Expand Down

0 comments on commit 8e6c75b

Please sign in to comment.