Files
MINGW-packages/mingw-w64-libwebsockets/002-bzero-declaration-conflict.patch
2018-12-27 14:28:56 +03:00

16 lines
491 B
Diff

--- libwebsockets-3.1.0/CMakeLists.txt.orig 2018-12-27 14:24:26.506882000 +0300
+++ libwebsockets-3.1.0/CMakeLists.txt 2018-12-27 14:24:42.668510400 +0300
@@ -681,10 +681,12 @@
set(CMAKE_REQUIRED_LIBRARIES network)
endif()
+if (NOT WIN32)
CHECK_C_SOURCE_COMPILES(
"#include <strings.h>
int main(int argc, char **argv) { char buf[1]; bzero(buf, 1); return 0; }
" LWS_HAVE_BZERO)
+endif()
CHECK_FUNCTION_EXISTS(fork LWS_HAVE_FORK)
CHECK_FUNCTION_EXISTS(getenv LWS_HAVE_GETENV)