From 418a9bc06a2c92bbdf4e3cef9e0ea2564fb334f6 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 20 Mar 1997 15:18:28 +0000 Subject: define S_ISLNK, S_ISSTAT if needed CVS patchset: 1490 CVS date: 1997/03/20 15:18:28 --- misc/miscfn.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'misc') diff --git a/misc/miscfn.h b/misc/miscfn.h index 6f6fb66fd..3d174cef1 100644 --- a/misc/miscfn.h +++ b/misc/miscfn.h @@ -19,4 +19,12 @@ char *realpath(char *path, char resolved_path[]); #endif +#if ! HAVE_S_ISLNK +#define S_ISLNK(mode) ((mode) & S_IFLNK) +#endif + +#if ! HAVE_S_ISSOCK +#define S_ISSOCK(mode) ((mode) & S_IFSOCK) +#endif + #endif -- cgit v1.2.3