summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-30 01:17:30 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-30 01:17:30 +0000
commit8766394782084eef1b77d39f5b8e54947847735f (patch)
tree234ff0a9359df679b2e52507968ceb2533e9efd2
parentbb2bdd9bca136495ab3a4b31755d58f97548f279 (diff)
downloadhercules-8766394782084eef1b77d39f5b8e54947847735f.tar.gz
hercules-8766394782084eef1b77d39f5b8e54947847735f.tar.bz2
hercules-8766394782084eef1b77d39f5b8e54947847735f.tar.xz
hercules-8766394782084eef1b77d39f5b8e54947847735f.zip
Fix linux builds
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1340 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Makefile2
-rw-r--r--src/common/socket.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 07d7a54b2..65b191e50 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ CC = gcc -pipe
GCLIB =
# GCLIB = -ldmalloc
-PACKETDEF = -DPACKETVER=6 -DNEW_006b
+PACKETDEF = -DPACKETVER=6 -DNEW_006b -DSO_REUSEPORT
#PACKETDEF = -DPACKETVER=5 -DNEW_006b
#PACKETDEF = -DPACKETVER=4 -DNEW_006b
#PACKETDEF = -DPACKETVER=3 -DNEW_006b
diff --git a/src/common/socket.h b/src/common/socket.h
index a78b71ad1..6793cfdb5 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -14,11 +14,6 @@
#include <netinet/in.h>
#endif
#include <time.h>
-// SO_REUSEPORT is predefined in FreeBSD in sys/socket.h so we only have to define if it's not
-#ifndef SO_REUSEPORT
-#define SO_REUSEPORT
-#endif
-
#include "malloc.h"
extern time_t tick_;