Add cmake check whether sys/sysmacros.h exists
Unfortunately 9ada8baca65da11a355970d02df8511f1b649d5a failed to compile
on FreeBSD due to the header not existing. So we need to check the
existance and properly guard with ifdef.
graesslin | Jul 30 2017, 7:30 PM |