Don't make S_ISSOCK use conditional
authorIan Lynagh <igloo@earth.li>
Thu, 4 Sep 2008 16:42:34 +0000 (16:42 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 4 Sep 2008 16:42:34 +0000 (16:42 +0000)
We were conditionally defining the C wrapper, but unconditionally using
it. So if it didn't exist then things would have broken anyway.

include/HsBase.h

index 63b0d5c..0ee058d 100644 (file)
@@ -229,10 +229,8 @@ INLINE int __hscore_s_isdir(mode_t m)  { return S_ISDIR(m);  }
 INLINE int __hscore_s_isfifo(mode_t m) { return S_ISFIFO(m); }
 INLINE int __hscore_s_isblk(mode_t m)  { return S_ISBLK(m);  }
 INLINE int __hscore_s_ischr(mode_t m)  { return S_ISCHR(m);  }
-#ifdef S_ISSOCK
 INLINE int __hscore_s_issock(mode_t m) { return S_ISSOCK(m); }
 #endif
-#endif
 
 #if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32)
 INLINE int