summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index 70074b454..e2795c27f 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -216,3 +216,7 @@ off_t lseek ();
# undef putchar
# define putchar(C) putchar_unlocked (C)
#endif
+
+#define SAME_INODE(Stat_buf_1, Stat_buf_2) \
+ ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
+ && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)