diff --git a/cmake/CheckFunctions.cmake b/cmake/CheckFunctions.cmake index 208c534455..afa5cfb918 100644 --- a/cmake/CheckFunctions.cmake +++ b/cmake/CheckFunctions.cmake @@ -9,9 +9,9 @@ check_function_exists(strftime HAVE_STRFTIME) check_function_exists(strsep HAVE_STRSEP) check_function_exists(sigset HAVE_SIGSET) -if(HAVE_SIGSET) +if (HAVE_SIGSET) set(SIG_FUNC sigset) -else() +else () set(SIG_FUNC signal) check_function_exists(sigaction HAVE_SIGACTION) -endif() +endif () diff --git a/cmake/OSSpecific.cmake b/cmake/OSSpecific.cmake index fc91c20bcf..f0a00244a2 100644 --- a/cmake/OSSpecific.cmake +++ b/cmake/OSSpecific.cmake @@ -9,15 +9,15 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") if (USE_NB_DNS) include(CheckCSourceCompiles) check_c_source_compiles(" -#include + #include int main() { HEADER *hdr; int d = NS_IN6ADDRSZ; return 0; } " ns_header_defined) if (NOT ns_header_defined) check_c_source_compiles(" -#include -#include + #include + #include int main() { HEADER *hdr; int d = NS_IN6ADDRSZ; return 0; } @@ -51,7 +51,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "ultrix") list(APPEND CMAKE_CXX_FLAGS -std1 -g3) include(CheckCSourceCompiles) check_c_source_compiles(" -#include + #include int main() { void c(const struct a *); return 0; @@ -67,7 +67,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "hpux" OR set(CMAKE_REQUIRED_FLAGS -Aa) set(CMAKE_REQUIRED_DEFINITIONS -D_HPUX_SOURCE) check_c_source_compiles(" -#include + #include int main() { int frob(int, char *); return 0;