I just noticed that createLyXTmpDir wouldn't compile under OS/2.

Not that there are any OS/2 users out there; I'll eat my hat
if LyX compiles under OS/2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9484 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-16 20:33:37 +00:00
parent 3e0abd0ad4
commit b60b6c6fb5

View File

@ -582,7 +582,7 @@ string const createLyXTmpDir(string const & deflt)
if (!deflt.empty() && deflt != "/tmp") {
if (mkdir(deflt, 0777)) {
#ifdef __EMX__
Path p(user_lyxdir());
Path p(package().user_support());
#endif
if (IsDirWriteable(deflt)) {
// deflt could not be created because it
@ -597,7 +597,7 @@ string const createLyXTmpDir(string const & deflt)
return deflt;
} else {
#ifdef __EMX__
Path p(user_lyxdir());
Path p(package().user_support());
#endif
return createTmpDir("/tmp", "lyx_tmpdir");
}