From 6944df0d5bd6899ff61811f23cd4c03d1f595db3 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sat, 12 Oct 2013 10:53:35 +0200 Subject: 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 --- System/Posix/Directory.hsc | 2 ++ System/Posix/Directory/ByteString.hsc | 2 ++ System/Posix/Directory/Common.hsc | 2 ++ 3 files changed, 6 insertions(+) (limited to 'System') 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, -- cgit v1.2.3