aboutsummaryrefslogtreecommitdiff
path: root/tls/CMakeLists.txt
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2018-02-25 01:59:39 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2018-02-25 21:56:05 +0900
commit3681d02253d29229e265720984ce81a35206de4c (patch)
tree95590bed234fb09e40e14feb5cdb6c0120f07334 /tls/CMakeLists.txt
parent47781e69e2946011ea7bd0723e98a2fedff88980 (diff)
downloadportable-3681d02253d29229e265720984ce81a35206de4c.tar.gz
portable-3681d02253d29229e265720984ce81a35206de4c.tar.bz2
portable-3681d02253d29229e265720984ce81a35206de4c.zip
Add compat bits for libtls on Windows
Diffstat (limited to 'tls/CMakeLists.txt')
-rw-r--r--tls/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt
index bc0c8f5..0e13da5 100644
--- a/tls/CMakeLists.txt
+++ b/tls/CMakeLists.txt
@@ -19,6 +19,16 @@ set(
19 tls_verify.c 19 tls_verify.c
20) 20)
21 21
22if(CMAKE_HOST_WIN32)
23set(
24 TLS_SRC
25 ${TLS_SRC}
26 compat/ftruncate.c
27 compat/getuid.c
28 compat/pread.c
29 compat/pwrite.c
30)
31endif()
22 32
23if(NOT "${OPENSSLDIR}" STREQUAL "") 33if(NOT "${OPENSSLDIR}" STREQUAL "")
24 add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\") 34 add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\")