X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fmake-temp-file.c;h=13e192565340266e80d40ff2bc56a8d6179b6325;hb=f1f2b5f40ef91b70acaa733f6f92f08de5efa29f;hp=eadcf8502137f111a7463f0c6b59f6a633f58a3e;hpb=3ca747ab0cccf022ee6c07f8b58986d0347309a4;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c index eadcf85021..13e1925653 100644 --- a/libiberty/make-temp-file.c +++ b/libiberty/make-temp-file.c @@ -1,5 +1,5 @@ /* Utility to pick a temporary filename prefix. - Copyright (C) 1996, 1997, 1998, 2001 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 2001, 2009 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -111,9 +111,14 @@ choose_tmpdir (void) char *tmpdir; unsigned int len; +#ifdef VMS + /* Try VMS standard temp logical. */ + base = try_dir ("/sys$scratch", base); +#else base = try_dir (getenv ("TMPDIR"), base); base = try_dir (getenv ("TMP"), base); base = try_dir (getenv ("TEMP"), base); +#endif #ifdef P_tmpdir base = try_dir (P_tmpdir, base);