-#ifndef mingw32_TARGET_OS
- CGid(..), CNlink(..), CSsize(..), CUid(..), CCc(..), CSpeed(..),
- CTcflag(..), CBlkCnt(..),
+ -- * POSIX data types
+#if defined(HTYPE_DEV_T)
+ CDev,
+#endif
+#if defined(HTYPE_INO_T)
+ CIno,
+#endif
+#if defined(HTYPE_MODE_T)
+ CMode,
+#endif
+#if defined(HTYPE_OFF_T)
+ COff,
+#endif
+#if defined(HTYPE_PID_T)
+ CPid,
+#endif
+#if defined(HTYPE_SSIZE_T)
+ CSsize,
+#endif
+
+#if defined(HTYPE_GID_T)
+ CGid,
+#endif
+#if defined(HTYPE_NLINK_T)
+ CNlink,
+#endif
+#if defined(HTYPE_UID_T)
+ CUid,
+#endif
+#if defined(HTYPE_CC_T)
+ CCc,
+#endif
+#if defined(HTYPE_SPEED_T)
+ CSpeed,
+#endif
+#if defined(HTYPE_TCFLAG_T)
+ CTcflag,
+#endif
+#if defined(HTYPE_RLIM_T)
+ CRLim,