[libmaxminddb]fix build error in linux. (#6435)

This commit is contained in:
JackBoosY 2019-05-15 02:45:13 +08:00 committed by Victor Romero
parent e4129a259e
commit e73d6251f9
3 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: libmaxminddb
Version: 1.3.2-1
Version: 1.3.2-2
Description: C library for the MaxMind DB file format

View File

@ -0,0 +1,19 @@
diff --git a/include/maxminddb.h b/include/maxminddb.h
index de1fdf8..1d17bc3 100644
--- a/include/maxminddb.h
+++ b/include/maxminddb.h
@@ -24,11 +24,12 @@ extern "C" {
#include <stdio.h>
#include <sys/types.h>
+/* libmaxminddb package version from configure */
+#define PACKAGE_VERSION "1.3.2"
+
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
-/* libmaxminddb package version from configure */
-#define PACKAGE_VERSION "1.3.2"
typedef ADDRESS_FAMILY sa_family_t;

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
REF 1.3.2
SHA512 43ff5f4e3a413772cd315412afc1070fb80280405d8845dc9d94a795265a71007c6c182dc01da8e14bf7b8ab8defe05714bec543faa956e7fb0f0a7756e7df48
HEAD_REF master
PATCHES fix-linux-build.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})