summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-03-20 15:18:28 +0000
committerewt <devnull@localhost>1997-03-20 15:18:28 +0000
commit418a9bc06a2c92bbdf4e3cef9e0ea2564fb334f6 (patch)
treed8725c26c7af3dba1db0ea2a05d0564538c9fd8b /misc
parent0ca7205ef3e98e25f7ffed4cf6f3415ab79ef11c (diff)
downloadrpm-418a9bc06a2c92bbdf4e3cef9e0ea2564fb334f6.tar.gz
rpm-418a9bc06a2c92bbdf4e3cef9e0ea2564fb334f6.tar.bz2
rpm-418a9bc06a2c92bbdf4e3cef9e0ea2564fb334f6.zip
define S_ISLNK, S_ISSTAT if needed
CVS patchset: 1490 CVS date: 1997/03/20 15:18:28
Diffstat (limited to 'misc')
-rw-r--r--misc/miscfn.h8
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