1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 15:34:47 +02:00

Fix mmdb library on Windows and use it by default

This commit is contained in:
Bram Matthys
2026-04-10 17:44:36 +02:00
parent 3c71a03781
commit a89f098a22
3 changed files with 7 additions and 3 deletions
+1
View File
@@ -275,6 +275,7 @@ DLL_FILES=\
src/modules/geoip_base.dll \
src/modules/geoip_classic.dll \
src/modules/geoip_csv.dll \
src/modules/geoip_mmdb.dll \
src/modules/geoip-tag.dll \
src/modules/globops.dll \
src/modules/help.dll \
+5 -2
View File
@@ -33,8 +33,11 @@
#include <stddef.h>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0601
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
+1 -1
View File
@@ -63,7 +63,7 @@
#define _WIN32_WINNT 0x0601
/* What geoip engine to use */
#define GEOIP_ENGINE "geoip_classic"
#define GEOIP_ENGINE "geoip_mmdb"
/* Generation version number (e.g.: 3 for Unreal3*) */
#define UNREAL_VERSION_GENERATION 6