mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
32 lines
739 B
Plaintext
32 lines
739 B
Plaintext
$NetBSD: patch-glibmm-utils_ustring_cc,v 1.2 2012/11/16 00:27:20 joerg Exp $
|
|
|
|
Fix build with latest glib2.
|
|
|
|
--- glibmm-utils/ustring.cc.orig 2008-06-19 13:12:29.000000000 +0000
|
|
+++ glibmm-utils/ustring.cc
|
|
@@ -20,8 +20,7 @@
|
|
*/
|
|
|
|
#include <cstring> // for g++ 4.3
|
|
-#include <glib/gmem.h>
|
|
-#include <glib/gmessages.h>
|
|
+#include <glib.h>
|
|
#include "ustring.h"
|
|
|
|
namespace Glib {
|
|
@@ -156,12 +155,12 @@ trim(Glib::ustring& str)
|
|
}
|
|
|
|
Glib::ustring
|
|
-uprintf(const Glib::ustring& format, ...)
|
|
+uprintf(const char *format, ...)
|
|
{
|
|
va_list args;
|
|
|
|
va_start(args, format);
|
|
- gchar* cstr = g_strdup_vprintf(format.c_str(), args);
|
|
+ gchar* cstr = g_strdup_vprintf(format, args);
|
|
Glib::ustring str(cstr);
|
|
g_free(cstr);
|
|
|