diff options
author | Yang Tse <yangsita@gmail.com> | 2007-04-25 03:00:10 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-04-25 03:00:10 +0000 |
commit | 94b253fde793a7419f0eafe16b24f440d344a1c9 (patch) | |
tree | 535b51278396773021d65c7df0a81dd7a359d7a0 /ares | |
parent | 61d7e720a58bef33e46b300c70ad88793801e077 (diff) |
Steve Little's fixes to allow compilation on VMS 64-bit mode
Diffstat (limited to 'ares')
-rw-r--r-- | ares/setup_once.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ares/setup_once.h b/ares/setup_once.h index c80fc32d9..4f7ed59bb 100644 --- a/ares/setup_once.h +++ b/ares/setup_once.h @@ -337,5 +337,26 @@ typedef int sig_atomic_t; #endif +/* + * Actually use __32_getpwuid() on 64-bit VMS builds for getpwuid() + */ + +#if defined(VMS) && \ + defined(__INITIAL_POINTER_SIZE) && (__INITIAL_POINTER_SIZE == 64) +#define getpwuid __32_getpwuid +#endif + + +/* + * Macro argv_item_t hides platform details to code using it. + */ + +#ifdef VMS +#define argv_item_t __char_ptr32 +#else +#define argv_item_t char * +#endif + + #endif /* __SETUP_ONCE_H */ |