ki18n: fix build
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
28
recipes-kde/kf5/tier1/ki18n/files/0004-Fix-compile.patch
Normal file
28
recipes-kde/kf5/tier1/ki18n/files/0004-Fix-compile.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
From 1adc1477a022db76db7b3f595d49fdf6f4409b88 Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Feck <cfeck@kde.org>
|
||||
Date: Sat, 7 May 2016 21:09:42 +0200
|
||||
Subject: [PATCH 3/3] Fix compile
|
||||
|
||||
---
|
||||
src/gettext.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gettext.h b/src/gettext.h
|
||||
index 57d985d..fd15bda 100644
|
||||
--- a/src/gettext.h
|
||||
+++ b/src/gettext.h
|
||||
@@ -160,10 +160,10 @@ dnpgettext_expr(const char *domain,
|
||||
size_t msgctxt_len = strlen(msgctxt) + 1;
|
||||
size_t msgid_len = strlen(msgid) + 1;
|
||||
const char *translation;
|
||||
+ int translation_found;
|
||||
#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
|
||||
char msg_ctxt_id[msgctxt_len + msgid_len];
|
||||
#else
|
||||
- int translation_found;
|
||||
char buf[1024];
|
||||
char *msg_ctxt_id =
|
||||
(msgctxt_len + msgid_len <= sizeof(buf)
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -10,3 +10,6 @@ inherit kde-kf5
|
||||
PV = "${KF5_VERSION}"
|
||||
SRC_URI[md5sum] = "9fa8448a8bc458756ad0996603560462"
|
||||
SRC_URI[sha256sum] = "edfb8858fc4aa10bf57ea362520bd3b3d10019f5dadde3a89911cd0205f10121"
|
||||
SRC_URI += " \
|
||||
file://0004-Fix-compile.patch \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user