pkgsrc/multimedia/kodi/patches/patch-xbmc_main_main.cpp
joerg 6d307764b8 Fix missing cstdlib / locale.h includes. Avoid UB by not passing non-POD
types to variadic functions. It's silly to force the construction of a
std::string as potential copy when just the C string is used anyway.
2015-12-23 12:43:25 +00:00

12 lines
329 B
C++

$NetBSD: patch-xbmc_main_main.cpp,v 1.1 2015/12/23 12:43:25 joerg Exp $
--- xbmc/main/main.cpp.orig 2015-12-22 18:28:15.000000000 +0000
+++ xbmc/main/main.cpp
@@ -28,6 +28,7 @@
#ifdef TARGET_POSIX
#include <sys/resource.h>
#include <signal.h>
+#include <locale.h>
#endif
#if defined(TARGET_DARWIN_OSX)
#include "Util.h"