summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-04-21 12:11:41 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-21 12:11:54 -0400
commitcfff183f9ebcbe8ec4df9dcf39e95ac077d6e312 (patch)
tree9a6d23b5a91739b62f207198e1ee0199da9b6fb7 /rts/posix
parente5732d2a28dfb8a754ee73e124e3558222a543bb (diff)
downloadhaskell-cfff183f9ebcbe8ec4df9dcf39e95ac077d6e312.tar.gz
Fix build on DragonflyBSD
Test Plan: Validate on DragonflyBSD Reviewers: austin, erikd, simonmar Reviewed By: erikd Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3480
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSThreads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index 45f394208f..c9adf4e6eb 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -9,9 +9,9 @@
#include "PosixSource.h"
-#if defined(freebsd_HOST_OS)
-/* Inclusion of system headers usually requires __BSD_VISIBLE on FreeBSD,
- * because of some specific types, like u_char, u_int, etc. */
+#if defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS)
+/* Inclusion of system headers usually requires __BSD_VISIBLE on FreeBSD and
+ * DragonflyBSD, because of some specific types, like u_char, u_int, etc. */
#define __BSD_VISIBLE 1
#endif
#if defined(darwin_HOST_OS)