aboutsummaryrefslogtreecommitdiffstats
path: root/vms/gawkmisc.vms
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-12-12 20:45:59 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-12-12 20:45:59 +0200
commit9953f4cee02f2781ee5da2e42bcb837c1a849cb0 (patch)
treeb322336208f51473e694287d8efe0891c4b10c8a /vms/gawkmisc.vms
parent70778853494d7ec00a77d42617fdd030c74c9bec (diff)
downloadegawk-9953f4cee02f2781ee5da2e42bcb837c1a849cb0.tar.gz
egawk-9953f4cee02f2781ee5da2e42bcb837c1a849cb0.tar.bz2
egawk-9953f4cee02f2781ee5da2e42bcb837c1a849cb0.zip
First round of VMS changes.
Diffstat (limited to 'vms/gawkmisc.vms')
-rw-r--r--vms/gawkmisc.vms6
1 files changed, 6 insertions, 0 deletions
diff --git a/vms/gawkmisc.vms b/vms/gawkmisc.vms
index cbc59cd7..bee0b962 100644
--- a/vms/gawkmisc.vms
+++ b/vms/gawkmisc.vms
@@ -208,11 +208,17 @@ files_are_same(char *newfile, SRCFILE *oldfile)
f2 = &oldfile->sbuf;
/* compare device string */
+#ifdef _USE_STD_STAT
+ return (f1->st_dev == f2->st_dev
+ /* and 48-bit file id cookie */
+ && f1->st_ino == f2->st_ino);
+ #else
return (strcmp(f1->st_dev, f2->st_dev) == 0
/* and 48-bit file id cookie stored in 3 short ints */
&& f1->st_ino[0] == f2->st_ino[0]
&& f1->st_ino[1] == f2->st_ino[1]
&& f1->st_ino[2] == f2->st_ino[2]);
+#endif
}
int