summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/luasocket.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/cmake/luasocket.cmake')
-rw-r--r--source/luametatex/cmake/luasocket.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/luametatex/cmake/luasocket.cmake b/source/luametatex/cmake/luasocket.cmake
index 8489b0a80..e36f1f7e6 100644
--- a/source/luametatex/cmake/luasocket.cmake
+++ b/source/luametatex/cmake/luasocket.cmake
@@ -51,6 +51,14 @@ if (WIN32)
)
endif()
+# It seems to depend on the mingw installation:
+
+if (__MINGW64_TOOLCHAIN_)
+ target_compile_definitions(luasocket PRIVATE
+ LUASOCKET_INET_PTON
+ )
+endif()
+
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_definitions(luasocket PRIVATE
LUASOCKET_INET_PTON