[commit: packages/unix] master: Make sure `HAVE_{SEEK, TELL}DIR` are in scope (6944df0)

git at git.haskell.org git at git.haskell.org
Sat Oct 12 08:56:36 UTC 2013


Repository : ssh://git@git.haskell.org/unix

On branch  : master
Link       : http://git.haskell.org/packages/unix.git/commitdiff/6944df0d5bd6899ff61811f23cd4c03d1f595db3

>---------------------------------------------------------------

commit 6944df0d5bd6899ff61811f23cd4c03d1f595db3
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Oct 12 10:53:35 2013 +0200

    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 at gnu.org>


>---------------------------------------------------------------

6944df0d5bd6899ff61811f23cd4c03d1f595db3
 System/Posix/Directory.hsc            |    2 ++
 System/Posix/Directory/ByteString.hsc |    2 ++
 System/Posix/Directory/Common.hsc     |    2 ++
 3 files changed, 6 insertions(+)

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,



More information about the ghc-commits mailing list