diff options
Diffstat (limited to 'System/Posix/Temp.hsc')
-rw-r--r-- | System/Posix/Temp.hsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/System/Posix/Temp.hsc b/System/Posix/Temp.hsc index 83e4ffe..eef5e34 100644 --- a/System/Posix/Temp.hsc +++ b/System/Posix/Temp.hsc @@ -40,7 +40,7 @@ mkstemp template = do withCString template $ \ ptr -> do fd <- throwErrnoIfMinus1 "mkstemp" (c_mkstemp ptr) name <- peekCString ptr -#ifdef __GLASGOW_HASKELL__ +#if defined(__GLASGOW_HASKELL__) || defined(__HUGS__) h <- fdToHandle fd #else closeFd fd |