mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 15:19:02 +08:00
4d469282ca
Fixes https://github.com/microsoft/vcpkg/issues/38246 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~SHA512s are updated for each updated download.~ - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [x] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
14 lines
586 B
Diff
14 lines
586 B
Diff
diff --git a/configs/azure_iot_build_rules.cmake b/configs/azure_iot_build_rules.cmake
|
|
index 2f7e4ae..00c94c7 100644
|
|
--- a/configs/azure_iot_build_rules.cmake
|
|
+++ b/configs/azure_iot_build_rules.cmake
|
|
@@ -73,7 +73,7 @@ if(MSVC)
|
|
elseif(UNIX) #LINUX OR APPLE
|
|
if(NOT (IN_OPENWRT OR APPLE))
|
|
# _XOPEN_SOURCE=500 is required for glibc to expose random and srandom.
|
|
- set (CMAKE_C_FLAGS "-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 ${CMAKE_C_FLAGS}")
|
|
+ set (CMAKE_C_FLAGS "-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 ${CMAKE_C_FLAGS}")
|
|
endif()
|
|
endif()
|
|
|