summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Doležel <lubos@dolezel.info>2015-12-30 23:17:13 +0100
committerLuboš Doležel <lubos@dolezel.info>2015-12-30 23:17:13 +0100
commitbf672d530aeb01d92022f290a0daf005bdf0bbe1 (patch)
tree3525dd3e49f9ae869b9a7cf3192d38eac3317260
parent3eca4f71974e1c896212e199fada20dacc41d644 (diff)
parent2fdc941808fb6ab567b3679a56d64bbf743c5133 (diff)
downloadtwinkle-bf672d530aeb01d92022f290a0daf005bdf0bbe1.tar
twinkle-bf672d530aeb01d92022f290a0daf005bdf0bbe1.tar.gz
twinkle-bf672d530aeb01d92022f290a0daf005bdf0bbe1.tar.lz
twinkle-bf672d530aeb01d92022f290a0daf005bdf0bbe1.tar.xz
twinkle-bf672d530aeb01d92022f290a0daf005bdf0bbe1.zip
Merge pull request #42 from petercolberg/include-linux-errqueue
Fix detection of <linux/errqueue.h>
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8cd1fc..86b34bd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@ if (WITH_QT4 AND WITH_QT5)
endif (WITH_QT4 AND WITH_QT5)
include (CheckIncludeFile)
+include (CheckIncludeFiles)
find_package(LibXml2 REQUIRED)
find_package(LibMagic REQUIRED)
@@ -130,7 +131,7 @@ endif (WITH_GSM)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(linux/types.h HAVE_LINUX_TYPES_H)
-check_include_file(linux/errqueue.h HAVE_LINUX_ERRQUEUE_H)
+check_include_files("sys/time.h;linux/errqueue.h" HAVE_LINUX_ERRQUEUE_H)
set(datadir "${CMAKE_INSTALL_PREFIX}/share/twinkle")
configure_file(twinkle_config.h.in twinkle_config.h)