diff options
author | Mike Sullivan <mksully22@gmail.com> | 2019-03-18 17:44:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-03-18 20:16:16 +0000 |
commit | f2d94bccf2aabcf8d185defebddd8663a53929f7 (patch) | |
tree | 3872a61596240048b4d87d14035ad902118ffe3a /community/nx-libs/fix-const-char.patch | |
parent | 0d069327e8274116f93dd8bb59866249a6172e25 (diff) | |
download | aports-f2d94bccf2aabcf8d185defebddd8663a53929f7.tar.bz2 aports-f2d94bccf2aabcf8d185defebddd8663a53929f7.tar.xz |
community/nx-libs: fix build break by FontEncDirectory return of const char *
Diffstat (limited to 'community/nx-libs/fix-const-char.patch')
-rw-r--r-- | community/nx-libs/fix-const-char.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/nx-libs/fix-const-char.patch b/community/nx-libs/fix-const-char.patch new file mode 100644 index 0000000000..404612cd63 --- /dev/null +++ b/community/nx-libs/fix-const-char.patch @@ -0,0 +1,28 @@ +--- a/nx-X11/lib/font/fontfile/encparse.c ++++ b/nx-X11/lib/font/fontfile/encparse.c +@@ -785,13 +785,13 @@ + return 0; + } + +-char* ++const char* + FontEncDirectory() + { +- static char* dir = NULL; ++ static const char* dir = NULL; + + if(dir == NULL) { +- char *c = getenv("FONT_ENCODINGS_DIRECTORY"); ++ const char *c = getenv("FONT_ENCODINGS_DIRECTORY"); + if(c) { + dir = malloc(strlen(c) + 1); + if(!dir) +@@ -899,7 +899,7 @@ + { + FontEncPtr encoding; + char dir[MAXFONTFILENAMELEN], dirname[MAXFONTFILENAMELEN]; +- char *d; ++ const char *d; + + if(fontFileName) { + parseFontFileName(fontFileName, dirname, dir); |