aboutsummaryrefslogtreecommitdiffhomepage
path: root/System
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2013-10-12 10:53:35 +0200
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2013-10-12 10:53:35 +0200
commit6944df0d5bd6899ff61811f23cd4c03d1f595db3 (patch)
tree936169d279040dadf4a72c92b6e788b19d937404 /System
parentc96a9d4966ac1a8949c35c051db8ce9ce0b57d65 (diff)
Make sure `HAVE_{SEEK,TELL}DIR` are in scope
This is a follow-up to b8fb0a0a9 which made the module exports of `tellDirStream` and `seekDirStream` CPP-conditional but didn't explicitly include `HsUnixConfig.h` which defines the respective CPP defines. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'System')
-rw-r--r--System/Posix/Directory.hsc2
-rw-r--r--System/Posix/Directory/ByteString.hsc2
-rw-r--r--System/Posix/Directory/Common.hsc2
3 files changed, 6 insertions, 0 deletions
diff --git a/System/Posix/Directory.hsc b/System/Posix/Directory.hsc
index d0ef4c0..be5ad8a 100644
--- a/System/Posix/Directory.hsc
+++ b/System/Posix/Directory.hsc
@@ -18,6 +18,8 @@
--
-----------------------------------------------------------------------------
+#include "HsUnix.h"
+
module System.Posix.Directory (
-- * Creating and removing directories
createDirectory, removeDirectory,
diff --git a/System/Posix/Directory/ByteString.hsc b/System/Posix/Directory/ByteString.hsc
index bb9100c..cea5a5a 100644
--- a/System/Posix/Directory/ByteString.hsc
+++ b/System/Posix/Directory/ByteString.hsc
@@ -18,6 +18,8 @@
--
-----------------------------------------------------------------------------
+#include "HsUnix.h"
+
module System.Posix.Directory.ByteString (
-- * Creating and removing directories
createDirectory, removeDirectory,
diff --git a/System/Posix/Directory/Common.hsc b/System/Posix/Directory/Common.hsc
index 7e2dfc6..45abbd4 100644
--- a/System/Posix/Directory/Common.hsc
+++ b/System/Posix/Directory/Common.hsc
@@ -18,6 +18,8 @@
--
-----------------------------------------------------------------------------
+#include "HsUnix.h"
+
module System.Posix.Directory.Common (
DirStream(..), CDir, CDirent, DirStreamOffset(..),
rewindDirStream,