Przeglądaj źródła

libuv: Explicitly enable GNU APIs on Cygwin

Backport upstream libuv commit `17ea56ee73` build: Improve build by
cmake for Cygwin, 2023-01-20, v1.45.0~68) to define `_GNU_SOURCE`.
Brad King 1 rok temu
rodzic
commit
93ee29964a
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      Utilities/cmlibuv/CMakeLists.txt

+ 1 - 0
Utilities/cmlibuv/CMakeLists.txt

@@ -165,6 +165,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR CMAKE_SYSTEM_NAME MATCHES "MSYS")
     include/uv/posix.h
     include/uv/posix.h
     )
     )
   list(APPEND uv_defines
   list(APPEND uv_defines
+    _GNU_SOURCE
     )
     )
   list(APPEND uv_sources
   list(APPEND uv_sources
     src/unix/cygwin.c
     src/unix/cygwin.c