summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
authormirabilos <tg@mirbsd.org>2017-01-27 02:02:41 +0100
committerItamar Reis Peixoto <itamar@ispbrasil.com.br>2017-01-26 23:02:41 -0200
commit6257bae23f09420c7988fb04523384f1be475c9e (patch)
tree6936de294718d764dfa765017bb1c995e181ca7d /common/os_calls.c
parent0bb048d35ea2824de8ed8f31c146163622f3ed38 (diff)
downloadxrdp-proprietary-6257bae23f09420c7988fb04523384f1be475c9e.tar.gz
xrdp-proprietary-6257bae23f09420c7988fb04523384f1be475c9e.zip
Add GNU/kFreeBSD support (#645)
* GNU/kFreeBSD is a FreeBSD variant, for code purposes. * GNU/kFreeBSD uses GNU/Linux-ish init scripts, however.
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 5db59caa..76685a40 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -87,8 +87,8 @@ extern char **environ;
#endif
/* sys/ucred.h needs to be included to use struct xucred
- * in FreeBSD and OS X. No need for other BSDs */
-#if defined(__FreeBSD__) || defined(__APPLE__)
+ * in FreeBSD and OS X. No need for other BSDs except GNU/kFreeBSD */
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
#include <sys/ucred.h>
#endif