hopefully, this will allow the windows targets to build

This commit is contained in:
Bill Currie 2000-04-27 01:25:20 +00:00
parent 0142fc1a24
commit ede51b8e01

View file

@ -820,16 +820,18 @@ COM_AddDirectory (char *dir)
char *p;
if (strncmp (dir, "~/", 2) == 0) {
struct passwd *pwd_ent;
char *home;
char *tmp;
#ifndef _WIN32
struct passwd *pwd_ent;
if ((pwd_ent = getpwuid (getuid()))) {
home = pwd_ent->pw_dir;
printf("%p\n",pwd_ent);
} else {
} else
#endif
home = getenv("HOME");
}
if (home) {
tmp = alloca(strlen(home)+strlen(dir));
strcpy (tmp, home);