Add patch to get rid completely of hardcoded local/lib paths
Willi Mann
10 years ago
0 | From: Willi Mann <willi@wm1.at> | |
1 | Date: Wed, 26 Dec 2012 10:03:47 +0100 | |
2 | Subject: Get fully rid of hardcoded local/lib paths | |
3 | ||
4 | --- | |
5 | src/my_iconv.h | 2 +- | |
6 | src/path.h | 2 +- | |
7 | 2 files changed, 2 insertions(+), 2 deletions(-) | |
8 | ||
9 | diff --git a/src/my_iconv.h b/src/my_iconv.h | |
10 | index 1ca8d26..ac42102 100644 | |
11 | --- a/src/my_iconv.h | |
12 | +++ b/src/my_iconv.h | |
13 | @@ -10,7 +10,7 @@ | |
14 | #define HAVE_ICONV_H | |
15 | #endif | |
16 | ||
17 | -#define CHARMAP_DIR "/usr/local/lib/unrtf/charmaps/" | |
18 | +#define CHARMAP_DIR PKGDATADIR "/charmaps/" | |
19 | #define char_table_size 256 | |
20 | ||
21 | typedef struct | |
22 | diff --git a/src/path.h b/src/path.h | |
23 | index 68a2167..f6c16d0 100644 | |
24 | --- a/src/path.h | |
25 | +++ b/src/path.h | |
26 | @@ -1,4 +1,4 @@ | |
27 | -#define DEFAULT_UNRTF_SEARCH_PATH "/usr/local/lib/unrtf/" | |
28 | +#define DEFAULT_UNRTF_SEARCH_PATH PKGDATADIR "/" | |
29 | ||
30 | char *search_path; | |
31 | int n_path_dirs; |