diff --git a/CMakeLists.txt b/CMakeLists.txt index 2615fc47f9..ac7d20e4be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,9 @@ if(${HAVE_WAYLAND}) else() set(HAVE_XKB FALSE) endif() + +check_include_files(unistd.h HAVE_UNISTD_H) +check_include_files(malloc.h HAVE_MALLOC_H) configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) diff --git a/config-kwin.h.cmake b/config-kwin.h.cmake index d2a8c82577..951198ab36 100644 --- a/config-kwin.h.cmake +++ b/config-kwin.h.cmake @@ -11,3 +11,9 @@ #cmakedefine01 HAVE_WAYLAND #cmakedefine01 HAVE_WAYLAND_EGL #cmakedefine01 HAVE_XKB + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_MALLOC_H 1 diff --git a/main.cpp b/main.cpp index 4b5a7675a8..c652876714 100644 --- a/main.cpp +++ b/main.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . *********************************************************************/ #include "main.h" -#include "config-workspace.h" +#include // kwin #include "atoms.h" #include "options.h"