From: ewt Date: Thu, 20 Mar 1997 15:18:28 +0000 (+0000) Subject: define S_ISLNK, S_ISSTAT if needed X-Git-Tag: rpm-4.4-release~4245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=418a9bc06a2c92bbdf4e3cef9e0ea2564fb334f6;p=platform%2Fupstream%2Frpm.git define S_ISLNK, S_ISSTAT if needed CVS patchset: 1490 CVS date: 1997/03/20 15:18:28 --- diff --git a/misc/miscfn.h b/misc/miscfn.h index 6f6fb66..3d174ce 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