mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-04-23 16:30:46 +00:00
hopefully, this will allow the windows targets to build
This commit is contained in:
parent
0142fc1a24
commit
ede51b8e01
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue