Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Cleanup includes, enhance portability #1227

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/compat/inet_aton.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
#define _EGG_COMPAT_INET_ATON_H

#include "src/main.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#include <netinet/in.h>
#include <arpa/inet.h>

#ifndef HAVE_INET_ATON
Expand Down
2 changes: 0 additions & 2 deletions src/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

#include "main.h"
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "dns.h"
#ifdef EGG_TDNS
Expand Down
1 change: 0 additions & 1 deletion src/mod/ctcp.mod/ctcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "ctcp.h"
#include "src/mod/module.h"
#include "server.mod/server.h"
#include <netinet/in.h>
#include <arpa/inet.h>

static Function *global = NULL, *server_funcs = NULL;
Expand Down
1 change: 0 additions & 1 deletion src/mod/share.mod/share.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <errno.h>
#include "src/mod/module.h"

#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/stat.h>

Expand Down
1 change: 0 additions & 1 deletion src/mod/transfer.mod/transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "src/users.h"
#include "transfer.h"

#include <netinet/in.h>
#include <arpa/inet.h>


Expand Down
2 changes: 0 additions & 2 deletions src/mod/uptime.mod/uptime.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@
#include "../module.h"
#include "../server.mod/server.h"
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
Expand Down
2 changes: 0 additions & 2 deletions src/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@
#include <limits.h>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
#if HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <errno.h>
Expand Down
2 changes: 0 additions & 2 deletions src/users.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
#include "main.h"
#include "modules.h"
#include "tandem.h"

#include <errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>

extern struct dcc_t *dcc;
Expand Down