1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Nico's VMS fixes

This commit is contained in:
Daniel Stenberg 2001-08-06 12:24:22 +00:00
parent d30c478378
commit 490d46affb

View File

@ -36,7 +36,9 @@
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif
#ifdef VMS
#include <unixlib.h>
#endif
#include <curl/curl.h> #include <curl/curl.h>
@ -88,8 +90,13 @@ int Curl_parsenetrc(char *host,
#if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) #if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID)
struct passwd *pw; struct passwd *pw;
pw= getpwuid(geteuid()); pw= getpwuid(geteuid());
if (pw) if (pw) {
#ifdef VMS
home = decc$translate_vms(pw->pw_dir);
#else
home = pw->pw_dir; home = pw->pw_dir;
#endif
}
#else #else
void *pw=NULL; void *pw=NULL;
#endif #endif