mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
3e0abd0ad4
commit
b60b6c6fb5
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user