summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/FindKernelHeaders.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/FindKernelHeaders.cmake b/cmake/FindKernelHeaders.cmake
index bd2e52d..d3ee0d9 100644
--- a/cmake/FindKernelHeaders.cmake
+++ b/cmake/FindKernelHeaders.cmake
@@ -17,7 +17,8 @@ endif(NOT KERNEL_INSTALL_DIR)
# find the Linux kernel headers from given KERNEL_BUILD_DIR
find_path(KernelHeaders_INCLUDE_DIR
- NAMES linux/user.h
+ NAMES config/clang/version.h
+ config/gcc/version.h
PATHS ${KERNEL_BUILD_DIR}/include)
# get Linux kernel headers version