diff options
author | Alexander Gottwald <ago at freedesktop dot org> | 2004-12-08 13:42:01 +0000 |
---|---|---|
committer | Alexander Gottwald <ago at freedesktop dot org> | 2004-12-08 13:42:01 +0000 |
commit | c73adb1c8ad806c2f9f0ba32f4b449e7a871501c (patch) | |
tree | c2537b10df55fdeef0cf3f0e2f06d9b2ecd6889a | |
parent | d5e7ab194103e22fd6c5094aaa107d90210bb600 (diff) | |
download | xorg-lib-libX11-c73adb1c8ad806c2f9f0ba32f4b449e7a871501c.tar.gz |
Bugzilla #1980 (https://bugs.freedesktop.org/show_bug.cgi?id=1980) Handle XERRORDB only on WIN32 platform
-rw-r--r-- | src/ErrDes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ErrDes.c b/src/ErrDes.c index fc829ec4..9f9656a1 100644 --- a/src/ErrDes.c +++ b/src/ErrDes.c @@ -149,9 +149,13 @@ XGetErrorDatabaseText( const char *dbname; XrmInitialize(); +#ifdef WIN32 dbname = getenv("XERRORDB"); if (!dbname) dbname = ERRORDB; +#else + dbname = ERRORDB; +#endif temp_db = XrmGetFileDatabase(dbname); _XLockMutex(_Xglobal_lock); |