mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 08:42:16 +02:00
CLEANUP: includes: fix includes for a number of users of fd.h
It appears that fd.h includes a number of unneeded files and was included from standard.h, and as such served as an intermediary to provide almost everything to everyone. By removing its useless includes, a long dependency chain broke but could easily be fixed.
This commit is contained in:
@@ -26,10 +26,10 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/un.h>
|
||||
#include <netinet/in.h>
|
||||
#include <common/config.h>
|
||||
#include <eb32tree.h>
|
||||
#include <proto/fd.h>
|
||||
|
||||
#ifndef LLONG_MAX
|
||||
# define LLONG_MAX 9223372036854775807LL
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <common/config.h>
|
||||
#include <types/connection.h>
|
||||
#include <types/protocols.h>
|
||||
|
||||
/* I/O callback for fd-based connections. It calls the read/write handlers
|
||||
* provided by the connection's sock_ops. Returns 0.
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <signal.h>
|
||||
#include <common/standard.h>
|
||||
#include <types/signal.h>
|
||||
#include <types/task.h>
|
||||
|
||||
extern int signal_queue_len;
|
||||
extern struct signal_descriptor signal_state[];
|
||||
|
||||
@@ -22,14 +22,8 @@
|
||||
#ifndef _TYPES_FD_H
|
||||
#define _TYPES_FD_H
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <common/config.h>
|
||||
#include <types/task.h>
|
||||
#include <types/protocols.h>
|
||||
#include <types/port_range.h>
|
||||
|
||||
enum {
|
||||
DIR_RD=0,
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <common/chunk.h>
|
||||
#include <common/mini-clist.h>
|
||||
#include <types/arg.h>
|
||||
|
||||
/* input and output sample types */
|
||||
|
||||
Reference in New Issue
Block a user