summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-04 17:52:53 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-04 17:52:53 +0000
commitaf1ad6e424c5b9c0aefd402e276a9743174028a2 (patch)
tree4dc81f7706436537075f4d751296e34bf1070cf6 /src/common/socket.c
parent2af1c6baaaf4a2f839da26bfd88dd3e629623c79 (diff)
downloadhercules-af1ad6e424c5b9c0aefd402e276a9743174028a2.tar.gz
hercules-af1ad6e424c5b9c0aefd402e276a9743174028a2.tar.bz2
hercules-af1ad6e424c5b9c0aefd402e276a9743174028a2.tar.xz
hercules-af1ad6e424c5b9c0aefd402e276a9743174028a2.zip
pull out upnp as default
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1402 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 6c7d873e0..2daf00764 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -45,18 +45,19 @@ time_t tick_;
time_t stall_time_ = 60;
int ip_rules = 1;
-#define UPNP
+// #define UPNP
+
#ifdef UPNP
- #if defined(CYGWIN) || defined(_WIN32)
- DLL upnp_dll;
- int (*upnp_init)();
- int (*upnp_final)();
- int (*firewall_addport)(char *desc, int port);
- int (*upnp_addport)(char *desc, char *ip, int port);
- extern char server_type[24];
- #else
- #error This doesnt work with non-Windows yet
- #endif
+#if defined(CYGWIN) || defined(_WIN32)
+DLL upnp_dll;
+int (*upnp_init)();
+int (*upnp_final)();
+int (*firewall_addport)(char *desc, int port);
+int (*upnp_addport)(char *desc, char *ip, int port);
+extern char server_type[24];
+#else
+#error This doesnt work with non-Windows yet
+#endif
#endif
int rfifo_size = 65536;