1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
Bruno Haible
68dd9ac979 tmpdir: Use a good default directory on native Windows.
* lib/tmpdir.c: Include <windows.h>, pathmax.h.
(P_tmpdir): Default to _P_tmpdir on native Windows.
(path_search): On native Windows, try the value returned by GetTempPath
before trying P_tmpdir.
* modules/tmpdir (Depends-on): Add pathmax.
Suggested by John Darrington <john@darrington.wattle.id.au>.
2011-08-23 08:40:27 +02:00
Eric Blake
81a77bddc1 * modules/tmpdir (Depends-on): Add sys_stat.
* modules/mkdtemp (Depends-on): Add tempname, drop unistd.
* lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
* lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
* m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
tempname.
2006-11-01 03:46:10 +00:00
Bruno Haible
7d99af9ffa Change to LGPL. 2006-08-15 11:53:54 +00:00
Bruno Haible
1b3e13870e New module 'tmpdir'. 2006-07-24 16:43:01 +00:00