From a034ee1b7d29f316a78336ca8f7c38f4cc71f79c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 25 Apr 2007 03:00:10 +0000 Subject: [PATCH] Steve Little's fixes to allow compilation on VMS 64-bit mode --- setup_once.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/setup_once.h b/setup_once.h index c80fc32d..4f7ed59b 100644 --- a/setup_once.h +++ b/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 */