Make it build on mingw32, with a cut-down set of types
--
-----------------------------------------------------------------------------
--
-----------------------------------------------------------------------------
module System.Posix.Types (
CDev(..), CIno(..), CMode(..), COff(..), CPid(..), CSsize(..),
module System.Posix.Types (
CDev(..), CIno(..), CMode(..), COff(..), CPid(..), CSsize(..),
+#ifndef mingw32_TARGET_OS
+ LinkCount,
+ UserID,
+ GroupID,
+#endif
+
ByteCount,
ClockTick,
EpochTime,
FileOffset,
ByteCount,
ClockTick,
EpochTime,
FileOffset,
ProcessID,
ProcessGroupID,
ProcessID,
ProcessGroupID,
DeviceID,
FileID,
FileMode
DeviceID,
FileID,
FileMode
#include "Dynamic.h"
#include "CTypes.h"
#include "Dynamic.h"
#include "CTypes.h"
NUMERIC_TYPE(CDev,tyConCDev,"CDev",HTYPE_DEV_T)
INTEGRAL_TYPE(CIno,tyConCIno,"CIno",HTYPE_INO_T)
NUMERIC_TYPE(CDev,tyConCDev,"CDev",HTYPE_DEV_T)
INTEGRAL_TYPE(CIno,tyConCIno,"CIno",HTYPE_INO_T)
INTEGRAL_TYPE(Fd,tyConFd,"Fd",CInt)
-- nicer names, and backwards compatibility with POSIX library:
INTEGRAL_TYPE(Fd,tyConFd,"Fd",CInt)
-- nicer names, and backwards compatibility with POSIX library:
+#ifndef mingw32_TARGET_OS
+type LinkCount = CNlink
+type UserID = CUid
+type GroupID = CGid
+#endif
+
type ByteCount = CSize
type ClockTick = CClock
type EpochTime = CTime
type ByteCount = CSize
type ClockTick = CClock
type EpochTime = CTime
type DeviceID = CDev
type FileID = CIno
type FileMode = CMode
type ProcessID = CPid
type DeviceID = CDev
type FileID = CIno
type FileMode = CMode
type ProcessID = CPid
-type UserID = CUid
-type GroupID = CGid
type FileOffset = COff
type ProcessGroupID = CPid
type FileOffset = COff
type ProcessGroupID = CPid