From 526f1dd284159d7e7b52d0263bc61fd54459d78b Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 4 Sep 2008 20:28:45 +0000 Subject: [PATCH] Don't define __hscore_s_issock on Windows --- include/HsBase.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/HsBase.h b/include/HsBase.h index 0ee058d..fd10e11 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -229,8 +229,10 @@ 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); } +#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__) 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