diff options
author | Paul Smith <psmith@gnu.org> | 2000-01-22 05:43:03 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-01-22 05:43:03 +0000 |
commit | 5577cdc2616262ae89c28cda49b5dd5449be472d (patch) | |
tree | 9e5b67f4754ce5a2d64bad43d28a7eaf093b6274 /glob/glob.h | |
parent | b7b83d6398e8e552dd1b9d70d18d7262753e03d4 (diff) | |
download | gunmake-5577cdc2616262ae89c28cda49b5dd5449be472d.tar.gz |
* Merge VMS patches by Hartmut Becker.
Diffstat (limited to 'glob/glob.h')
-rw-r--r-- | glob/glob.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/glob/glob.h b/glob/glob.h index 7c2a67a..9f735fe 100644 --- a/glob/glob.h +++ b/glob/glob.h @@ -51,7 +51,15 @@ extern "C" { typedef __SIZE_TYPE__ __size_t; # else /* This is a guess. */ +/*hb + * Conflicts with DECCs aready defined type __size_t. + * Defining an own type with a name beginning with '__' is no good. + * Anyway if DECC is used and __SIZE_T is defined then __size_t is + * already defined (and I hope it's exactly the one we need here). + */ +#if !(defined __DECC && defined __SIZE_T) typedef unsigned long int __size_t; +#endif # endif #else /* The GNU CC stddef.h version defines __size_t as empty. We need a real @@ -118,7 +126,11 @@ typedef struct struct dirent *(*gl_readdir) __PMT ((void *)); __ptr_t (*gl_opendir) __PMT ((__const char *)); int (*gl_lstat) __PMT ((__const char *, struct stat *)); +#if defined(VMS) && defined(__DECC) && !defined(_POSIX_C_SOURCE) + int (*gl_stat) __PMT ((__const char *, struct stat *, ...)); +#else int (*gl_stat) __PMT ((__const char *, struct stat *)); +#endif } glob_t; #ifdef _LARGEFILE64_SOURCE |