File mysql-gui-tools-gcc4.4.patch of Package mysql-gui-tools
Index: common/library/generic-canvas/source/myx_gc_variant.cpp
===================================================================
--- common/library/generic-canvas/source/myx_gc_variant.cpp.orig
+++ common/library/generic-canvas/source/myx_gc_variant.cpp
@@ -22,6 +22,7 @@
#include "myx_gc_variant.h"
#include "myx_gc_datatypes.h"
+#include <stdio.h>
//----------------------------------------------------------------------------------------------------------------------
Index: common/source/linux/MySQLGRT/MGRT.cc
===================================================================
--- common/source/linux/MySQLGRT/MGRT.cc.orig
+++ common/source/linux/MySQLGRT/MGRT.cc
@@ -891,7 +891,7 @@ void MGRT::set_global_value(const char *
void MGRT::unset_global_value(const char *path)
{
- char *end= strrchr(path, '/');
+ const char *end= strrchr(path, '/');
std::string subpath(path, end-path);
MYX_GRT_VALUE *dict;
Index: query-browser/source/linux/gtksourceview/gtksourceview/gtksourceregex.c
===================================================================
--- query-browser/source/linux/gtksourceview/gtksourceview/gtksourceregex.c.orig
+++ query-browser/source/linux/gtksourceview/gtksourceview/gtksourceregex.c
@@ -28,6 +28,7 @@
#ifdef NATIVE_GNU_REGEX
#include <sys/types.h>
+#define __USE_GNU
#include <regex.h>
#else
#include "gnu-regex/regex.h"