[cmake] help cmake on FreeBSD find sys/event.h
commit3abbb8dc4b3dda39d4af0d7c0327f53129e23adf
authorGlenn Strauss <gstrauss@gluelogic.com>
Sun, 5 May 2019 06:52:31 +0000 (5 02:52 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sun, 5 May 2019 07:02:01 +0000 (5 03:02 -0400)
tree41ea606273cedba2df1700ba067e9031da3bfccb
parentd836d203170d5f70aabba4eb7b29643ad640cacb
[cmake] help cmake on FreeBSD find sys/event.h

sys/event.h does not compile standalone, so check_include_files() fails

Add compiler flags -include sys/types.h so that the compile check passes

This allows cmake builds on FreeBSD to detect and use kqueue.
src/CMakeLists.txt