aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
commit2f6ae89f757135fdd1d95c7d3056873816452d59 (patch)
treea0a1de56317bb84f171cd12b8ef2847f74c0d925
parent026546d826b5649668c8d1ae69821dee30159100 (diff)
downloadhaxircd-2f6ae89f757135fdd1d95c7d3056873816452d59.tar.gz
haxircd-2f6ae89f757135fdd1d95c7d3056873816452d59.zip
networking: #include <netinet/in.h>
IPPROTO_TCP, etc. seem to be defined in netinet/in.h on non-Linux systems, including OpenBSD.
-rw-r--r--general_network.c1
-rw-r--r--networks/gnutls.c1
-rw-r--r--networks/gnutls_buffered.c1
-rw-r--r--networks/openssl.c1
-rw-r--r--networks/openssl_buffered.c1
-rw-r--r--networks/plaintext.c1
-rw-r--r--networks/plaintext_buffered.c1
-rw-r--r--server_network.c1
8 files changed, 8 insertions, 0 deletions
diff --git a/general_network.c b/general_network.c
index 816e4c0..13ac26c 100644
--- a/general_network.c
+++ b/general_network.c
@@ -34,6 +34,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
+#include <netinet/in.h>
#include "config.h"
#include "general_network.h"
diff --git a/networks/gnutls.c b/networks/gnutls.c
index bbabadf..4beb552 100644
--- a/networks/gnutls.c
+++ b/networks/gnutls.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "../config.h"
#include "../general_network.h"
diff --git a/networks/gnutls_buffered.c b/networks/gnutls_buffered.c
index 3d5aa61..80e8574 100644
--- a/networks/gnutls_buffered.c
+++ b/networks/gnutls_buffered.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "../config.h"
#include "../general_network.h"
diff --git a/networks/openssl.c b/networks/openssl.c
index db3790a..199a243 100644
--- a/networks/openssl.c
+++ b/networks/openssl.c
@@ -34,6 +34,7 @@
#include <poll.h>
#include <pthread.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "../config.h"
#include "../main.h"
diff --git a/networks/openssl_buffered.c b/networks/openssl_buffered.c
index ebdf4b0..3547e64 100644
--- a/networks/openssl_buffered.c
+++ b/networks/openssl_buffered.c
@@ -34,6 +34,7 @@
#include <poll.h>
#include <pthread.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "../config.h"
#include "../main.h"
diff --git a/networks/plaintext.c b/networks/plaintext.c
index e274c08..7471811 100644
--- a/networks/plaintext.c
+++ b/networks/plaintext.c
@@ -34,6 +34,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "../config.h"
#include "../general_network.h"
diff --git a/networks/plaintext_buffered.c b/networks/plaintext_buffered.c
index 038f3f7..14fc1ea 100644
--- a/networks/plaintext_buffered.c
+++ b/networks/plaintext_buffered.c
@@ -35,6 +35,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "../config.h"
#include "../general_network.h"
diff --git a/server_network.c b/server_network.c
index 12fc147..1dae88d 100644
--- a/server_network.c
+++ b/server_network.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <netinet/in.h>
#include "config.h"
#include "haxstring.h"