1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add upstream patch to fix the build with the IBUS option on.

Explicitly #include <locale.h> to avoid this:

  /wrkdirs/usr/ports/deskutils/kdeplasma-addons/work/kdeplasma-addons-4.14.2/applets/kimpanel/backend/ibus/ibus15/panel.cpp:415:36: error: use of undeclared identifier 'LC_CTYPE'
    const char* locale = setlocale(LC_CTYPE, NULL);
This commit is contained in:
Raphael Kubo da Costa 2014-10-20 20:39:43 +00:00
parent f8b75b5619
commit c0b6043623
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371302
2 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= kdeplasma-addons
PORTVERSION= ${KDE4_VERSION}
PORTREVISION= 1
CATEGORIES= deskutils kde
MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR= KDE/${PORTVERSION}

View File

@ -0,0 +1,21 @@
commit 3eef0383f98f8a5e99a07b5998ca035055a1db31
Author: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Date: Mon Oct 20 23:28:06 2014 +0300
kimpanel: Include <locale.h> for LC_CTYPE.
Required after 80e34a0cb61aafb925fe38fec5532fa0f28486e9 ("complete ibus
1.5 port") -- at least on FreeBSD locale.h isn't included indirectly.
CCMAIL: wengxt@gmail.com
--- applets/kimpanel/backend/ibus/ibus15/panel.cpp
+++ applets/kimpanel/backend/ibus/ibus15/panel.cpp
@@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <ibus.h>