From 9e0efec78c5ab045055d221756f77a2d10fc55f9 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 4 Sep 2008 16:42:34 +0000 Subject: [PATCH] Don't make S_ISSOCK use conditional 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/HsBase.h b/include/HsBase.h index 63b0d5c..0ee058d 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -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 -- 1.7.10.4