mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
bzero: improve detection of builtin
This commit is contained in:
parent
3696480b57
commit
546a2800c7
1 changed files with 5 additions and 1 deletions
|
@ -643,7 +643,11 @@ if (HAIKU)
|
|||
set(CMAKE_REQUIRED_LIBRARIES network)
|
||||
endif()
|
||||
|
||||
CHECK_FUNCTION_EXISTS(bzero LWS_HAVE_BZERO)
|
||||
CHECK_C_SOURCE_COMPILES(
|
||||
"#include <strings.h>
|
||||
int main(int argc, char **argv) { char buf[1]; bzero(buf, 1); return 0; }
|
||||
" LWS_HAVE_BZERO)
|
||||
|
||||
CHECK_FUNCTION_EXISTS(fork LWS_HAVE_FORK)
|
||||
CHECK_FUNCTION_EXISTS(getenv LWS_HAVE_GETENV)
|
||||
CHECK_FUNCTION_EXISTS(malloc LWS_HAVE_MALLOC)
|
||||
|
|
Loading…
Add table
Reference in a new issue