diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
commit | eb737947eb2afe98f9dac1121fa37d1b746c5657 (patch) | |
tree | 02aa7752555cc4a47b1a9b423066bbdc52a7e8c5 /src/libutil/addr.h | |
parent | e0bfa35ee937940f20a5675bc7582cfc83c2866b (diff) | |
download | rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.tar.gz rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.zip |
Reorganize includes to reduce namespace pollution.
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r-- | src/libutil/addr.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h index a13c14b53..affd87158 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -24,6 +24,21 @@ #define ADDR_H_ #include "config.h" + +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif +#ifdef HAVE_NETINET_IN_H +#include <netinet/in.h> +#endif +#ifdef HAVE_ARPA_INET_H +#include <arpa/inet.h> +#endif +/* unix sockets */ +#ifdef HAVE_SYS_UN_H +#include <sys/un.h> +#endif + #include "mem_pool.h" /** |