Commit d1b2761a authored by Tobias C. Berner's avatar Tobias C. Berner

Fix detection of sys/event.h on FreeBSD < 12

Summary:
Unfortunately I only tested the kevent stuff on FreeBSD 12. FreeBSD < 12 has an older clang, which seems to add less headers automatically.

The call to `check_include_file(sys/event.h)` fails as it's missing `sys/types.h`.
So change this to `check_include_files(sys/types.h;sys/event.h)`.

Reviewers: #freebsd

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D6024
parent 12220206
......@@ -35,7 +35,7 @@ add_feature_info("prctl/procctl tracing control"
check_include_file("sys/signalfd.h" HAVE_SIGNALFD_H)
if (NOT HAVE_SIGNALFD_H)
check_include_file("sys/event.h" HAVE_EVENT_H)
check_include_files("sys/types.h;sys/event.h" HAVE_EVENT_H)
endif ()
if (NOT (HAVE_SIGNALFD_H OR HAVE_EVENT_H))
message(FATAL_ERROR "kcheckpass either needs signalfd() or kevent()&sigtimedwait() to work")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment