MINOR: includes: fix a lot of missing or useless includes

These modifications are done for resolving cross-dependent
includes in the upcoming LUA code.

<proto/channel.h> misses <types/channel.h>.

<types/acl.h> doesn't use <types/session.h> because the session
is already declared in the file as undefined pointer.

appsession.c misses <unistd.h> to use "write()".

Declare undefined pointer "struct session" for <types/proxy.h>
and <types/queue.h>. These includes dont need the detail of this
struct.
This commit is contained in:
Thierry FOURNIER 2014-12-16 15:41:18 +01:00 committed by Willy Tarreau
parent 49f45af9aa
commit ac836baad1
5 changed files with 6 additions and 3 deletions

View File

@ -32,6 +32,7 @@
#include <common/ticks.h>
#include <common/time.h>
#include <types/channel.h>
#include <types/global.h>
extern struct pool_head *pool2_channel;

View File

@ -31,7 +31,6 @@
#include <types/pattern.h>
#include <types/proxy.h>
#include <types/server.h>
#include <types/session.h>
#include <ebmbtree.h>

View File

@ -46,7 +46,6 @@
#include <types/obj_type.h>
#include <types/proto_http.h>
#include <types/sample.h>
#include <types/session.h>
#include <types/server.h>
#include <types/stick_table.h>
@ -186,6 +185,8 @@ enum pr_mode {
#define STK_IS_STORE 0x00000002 /* store on request fetch */
#define STK_ON_RSP 0x00000004 /* store on response fetch */
struct session;
struct error_snapshot {
struct timeval when; /* date of this event, (tv_sec == 0) means "never" */
unsigned int len; /* original length of the last invalid request/response */

View File

@ -26,7 +26,8 @@
#include <common/mini-clist.h>
#include <types/server.h>
#include <types/session.h>
struct session;
struct pendconn {
struct list list; /* chaining ... */

View File

@ -13,6 +13,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <common/appsession.h>
#include <common/config.h>