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
Changes from 1 commit
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
Next Next commit
sys/socket.h is included by eggdrop.h, so, anything including eggdrop…
….h directly or indirectly doesnt need to include sys/socket.h explicitely
michaelortmann committed Nov 7, 2021
commit dd662ecacadcbc492f61bbaa72c8ef955daaa4c2
3 changes: 0 additions & 3 deletions src/compat/gethostbyname2.h
Original file line number Diff line number Diff line change
@@ -26,9 +26,6 @@
#include "src/main.h"

#include <netdb.h>
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#include <netinet/in.h>

#if defined IPV6 && !defined HAVE_GETHOSTBYNAME2
3 changes: 0 additions & 3 deletions src/compat/inet_aton.h
Original file line number Diff line number Diff line change
@@ -24,9 +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>

1 change: 0 additions & 1 deletion src/dns.c
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@

#include "main.h"
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "dns.h"
1 change: 0 additions & 1 deletion src/mod/uptime.mod/uptime.c
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
1 change: 0 additions & 1 deletion src/net.c
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@
#include <limits.h>
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
#if HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif