Recognize Debian GNU/kFreeBSD as FreeBSD-ish.
authorPeter Pentchev <roam@ringlet.net>
Fri, 25 Dec 2015 11:35:40 +0000 (13:35 +0200)
committerAndy Green <andy.green@linaro.org>
Fri, 25 Dec 2015 13:15:21 +0000 (21:15 +0800)
commitda2eab3f6687b7f899fcc1f1c29cc3132a64abbd
tree4c9eebb8c4eb4ac73dcc313dd2b6cf234812503b
parentde132b94b169fa774f1d554139cee4e482987a06
Recognize Debian GNU/kFreeBSD as FreeBSD-ish.

Some of the FreeBSD-specific code in libwebsockets is related to
the FreeBSD kernel, not the general build environment.  Thus, it is
important to make this distinction, especially when building on
platforms that have a FreeBSD kernel and a non-FreeBSD userland build
environment, such as Debian GNU/kFreeBSD.

When checking for FreeBSD kernel features, also check for the newly
introduced __FreeBSD_kernel__ preprocessor constant; it is present in
the GNU/kFreeBSD kernel and also in FreeBSD itself since the 9.1 release
about three years ago.
lib/lws-plat-unix.c