1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/textproc/sdcv/files/patch-src__sdcv.cpp
Martin Wilke 81d0f2b19b - Fix build with clang
PR:		185696
Submitted by:	ports fury
2014-01-19 14:28:36 +00:00

16 lines
409 B
C++

--- src/sdcv.cpp.orig
+++ src/sdcv.cpp
@@ -161,7 +161,11 @@
strlist_t dicts_dir_list;
- dicts_dir_list.push_back(std::string(g_get_home_dir())+G_DIR_SEPARATOR+
+ const char *homedir = g_getenv ("HOME");
+ if (!homedir)
+ homedir = g_get_home_dir ();
+
+ dicts_dir_list.push_back(std::string(homedir)+G_DIR_SEPARATOR+
".stardict"+G_DIR_SEPARATOR+"dic");
dicts_dir_list.push_back(data_dir);