aboutsummaryrefslogtreecommitdiffstats
path: root/vms/vms_misc.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-02-03 06:23:35 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-02-03 06:23:35 +0200
commit6471f08e36c2c3015d829cf0775d746701d1476b (patch)
treea89d31305d902bc792b9dec43625d5e1e20ea62b /vms/vms_misc.c
parent4fd275be1983c2b9d65fe3b67a87eeb31763f218 (diff)
parentafe565753eb654aa1b2280908701e8c0d8e7ccbb (diff)
downloadegawk-6471f08e36c2c3015d829cf0775d746701d1476b.tar.gz
egawk-6471f08e36c2c3015d829cf0775d746701d1476b.tar.bz2
egawk-6471f08e36c2c3015d829cf0775d746701d1476b.zip
Merge branch 'gawk-4.1-stable' of ssh://git.sv.gnu.org/srv/git/gawk into gawk-4.1-stable
Diffstat (limited to 'vms/vms_misc.c')
-rw-r--r--vms/vms_misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vms/vms_misc.c b/vms/vms_misc.c
index 82c2f8a8..e561af59 100644
--- a/vms/vms_misc.c
+++ b/vms/vms_misc.c
@@ -120,7 +120,7 @@ vms_open( const char *name, int mode, ... )
struct stat stb;
int stat_result;
const char *mbc, *shr = "shr=get", *ctx = "ctx=stm";
-
+
stat_result = stat((char *)name, &stb);
if ( stat_result < 0) { /* assume DECnet */
mbc = "mbc=8";
@@ -187,7 +187,9 @@ vms_gettimeofday(struct timeval *tv, void *timezone__not_used)
/*
Emulate unix's gettimeofday call; timezone argument is ignored.
*/
- static const Dsc epoch_dsc = { sizeof UNIX_EPOCH - sizeof "", UNIX_EPOCH };
+ static const struct dsc$descriptor_s epoch_dsc =
+ { sizeof UNIX_EPOCH - sizeof "",
+ DSC$K_DTYPE_T, DSC$K_CLASS_S, UNIX_EPOCH };
static long epoch[2] = {0L,0L}; /* needs one time initialization */
const long thunk = VMS_UNITS_PER_SECOND;
long now[2], quad[2];