diff options
Diffstat (limited to 'misc/miscfn.h')
-rw-r--r-- | misc/miscfn.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |