diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-03-21 01:13:27 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-03-21 01:13:27 -0700 |
| commit | 7cf6615a0145218f0baec63471b742e3471c1c86 (patch) | |
| tree | 15f13e565b3c8b95e6bf1bb5f82e1e75c9854c10 | |
| parent | b676c460435442250bbecd407f0ff289dbd289a6 (diff) | |
| download | vcpkg-7cf6615a0145218f0baec63471b742e3471c1c86.tar.gz vcpkg-7cf6615a0145218f0baec63471b742e3471c1c86.zip | |
[openssl] Use winsock2.h in headers instead of winsock.h
| -rw-r--r-- | ports/openssl/CONTROL | 2 | ||||
| -rw-r--r-- | ports/openssl/portfile.cmake | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/openssl/CONTROL b/ports/openssl/CONTROL index e1cea2799..43a6eb660 100644 --- a/ports/openssl/CONTROL +++ b/ports/openssl/CONTROL @@ -1,3 +1,3 @@ Source: openssl -Version: 1.0.2n-2 +Version: 1.0.2n-3 Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library. diff --git a/ports/openssl/portfile.cmake b/ports/openssl/portfile.cmake index 3d442ec9e..dd92552f4 100644 --- a/ports/openssl/portfile.cmake +++ b/ports/openssl/portfile.cmake @@ -150,6 +150,10 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/) endif() +file(READ "${CURRENT_PACKAGES_DIR}/include/openssl/dtls1.h" _contents) +string(REPLACE "<winsock.h>" "<winsock2.h>" _contents "${_contents}") +file(WRITE "${CURRENT_PACKAGES_DIR}/include/openssl/dtls1.h" "${_contents}") + vcpkg_copy_pdbs() file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) |
