diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 13:09:56 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 13:09:56 +0300 |
commit | bc70de7b3302d5a81515b901cae376b8b51d2004 (patch) | |
tree | d36d6743e65697f6923b79d0ea8f9f9bf4ef7398 /vms/redirect.h | |
parent | b9e4a1fd4c8c8753ab8a9887bab55f03efe1e3e2 (diff) | |
download | egawk-bc70de7b3302d5a81515b901cae376b8b51d2004.tar.gz egawk-bc70de7b3302d5a81515b901cae376b8b51d2004.tar.bz2 egawk-bc70de7b3302d5a81515b901cae376b8b51d2004.zip |
Move to gawk-3.1.0.
Diffstat (limited to 'vms/redirect.h')
-rw-r--r-- | vms/redirect.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vms/redirect.h b/vms/redirect.h index 294dba7f..1ef3f061 100644 --- a/vms/redirect.h +++ b/vms/redirect.h @@ -51,6 +51,9 @@ #define timezone fake_timezone #define altzone fake_altzone #endif +#if !defined(__DECC) && !defined(VAXC2DECC) && !defined(__alpha) +#define strcoll(s,t) strcmp((s),(t)) /* VAXCRTL lacks locale support */ +#endif #endif #ifdef STDC_HEADERS @@ -59,6 +62,15 @@ #include <stdlib.h> #include <string.h> #endif +#ifndef VMS_POSIX +/* This if for random.c. */ +#define gettimeofday vms_gettimeofday +#ifndef __TIMEVAL +#define __TIMEVAL 1 +struct timeval { long tv_sec, tv_usec; }; +#endif +extern int gettimeofday(struct timeval *,void *); +#endif #else /* awk.h, not POSIX */ @@ -73,6 +85,9 @@ #define strerror vms_strerror #define strdup vms_strdup #define unlink vms_unlink +#if defined(VAXC) || (defined(__GNUC__) && !defined(__alpha)) +#define fstat(fd,sb) VMS_fstat(fd,sb) +#endif extern void exit P((int)); extern int open P((const char *,int,...)); extern char *strerror P((int)); |