diff --git a/CMake/unix-cache.cmake b/CMake/unix-cache.cmake index e0e1d8f947..6ccd7b8377 100644 --- a/CMake/unix-cache.cmake +++ b/CMake/unix-cache.cmake @@ -309,3 +309,11 @@ if(CYGWIN) endif() set(STDC_HEADERS 1) set(USE_UNIX_SOCKETS 1) + +if(MUSL) + set(HAVE_GLIBC_STRERROR_R 0) + set(HAVE_LINUX_TCP_H 0) + set(HAVE_POSIX_STRERROR_R 1) + set(HAVE_STROPTS_H 1) + set(HAVE_TERMIOS_H 0) +endif()