File lib555-missing-xlocale.patch of Package kodi.binary-addons
From: Dave Plater <davejplater@gmail.com
Date: 2017-09-29 11:17:22 +0200
Subject: input: Fix kodi.binary-addons xlocale.h issue
References: Packman Mailing list
Patch Locale.hh to not include xlocale.h which is long
depreciated and only used in apple.
Index: project/cmake/addons/build/pvr.mediaportal.tvserver/src/lib/live555/liveMedia/include/Locale.hh
===================================================================
--- pvr.mediaportal.tvserver/src/lib/live555/liveMedia/include/Locale.hh.orig 2017-09-29 11:13:15.976289827 +0200
+++ pvr.mediaportal.tvserver/src/lib/live555/liveMedia/include/Locale.hh 2017-09-29 12:23:38.960166506 +0200
@@ -33,8 +33,8 @@ along with this library; if not, write t
// then you can override this by defining "XLOCALE_USED" before #including this file.
#ifdef XLOCALE_USED
-#undef LOCALE_NOT_USED
-#undef XLOCALE_NOT_USED
+#undef XLOCALE_USED
+#define XLOCALE_NOT_USED 1
#else
#if defined(__WIN32__) || defined(_WIN32)
#define XLOCALE_NOT_USED 1
@@ -44,7 +44,7 @@ along with this library; if not, write t
#ifndef LOCALE_NOT_USED
#include <locale.h>
#ifndef XLOCALE_NOT_USED
-#include <xlocale.h> // because, on some systems, <locale.h> doesn't include <xlocale.h>; this makes sure that we get both
+#include <locale.h> // because, on some systems, <locale.h> doesn't include <locale.h>; this makes sure that we get both
#endif
#endif