diff options
author | Jim Blandy <jimb@red-bean.com> | 1997-04-12 00:39:44 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1997-04-12 00:39:44 +0000 |
commit | d7b8a21a81228d978a912b2412c34b3628635043 (patch) | |
tree | d8850862dc747192c575f4ac5b60f96735cbc06a | |
parent | 12afb6191f2faf10472f5334acb2d5eb460d38cd (diff) | |
download | guile-d7b8a21a81228d978a912b2412c34b3628635043.tar.gz |
* filesys.c (S_ISSOCK): Define this if it's missing, but we do
have S_IFSOCK. This is the case under Ultrix.
-rw-r--r-- | libguile/filesys.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libguile/filesys.c b/libguile/filesys.c index 70259a1c2..0af4e2a74 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -116,6 +116,10 @@ # endif #endif +/* Ultrix has S_IFSOCK, but no S_ISSOCK. Ipe! */ +#if defined (S_IFSOCK) && ! defined (S_ISSOCK) +#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) +#endif |