Make sure `HAVE_{SEEK,TELL}DIR` are in scope
authorHerbert Valerio Riedel <hvr@gnu.org>
Sat, 12 Oct 2013 08:53:35 +0000 (10:53 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 12 Oct 2013 08:53:35 +0000 (10:53 +0200)
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>
System/Posix/Directory.hsc
System/Posix/Directory/ByteString.hsc
System/Posix/Directory/Common.hsc

index d0ef4c0..be5ad8a 100644 (file)
@@ -18,6 +18,8 @@
 --
 -----------------------------------------------------------------------------
 
+#include "HsUnix.h"
+
 module System.Posix.Directory (
    -- * Creating and removing directories
    createDirectory, removeDirectory,
index bb9100c..cea5a5a 100644 (file)
@@ -18,6 +18,8 @@
 --
 -----------------------------------------------------------------------------
 
+#include "HsUnix.h"
+
 module System.Posix.Directory.ByteString (
    -- * Creating and removing directories
    createDirectory, removeDirectory,
index 7e2dfc6..45abbd4 100644 (file)
@@ -18,6 +18,8 @@
 --
 -----------------------------------------------------------------------------
 
+#include "HsUnix.h"
+
 module System.Posix.Directory.Common (
        DirStream(..), CDir, CDirent, DirStreamOffset(..),
        rewindDirStream,