diff options
Diffstat (limited to 'community/gtkglextmm/fix_ftbfs_gtk_2_20.patch')
-rw-r--r-- | community/gtkglextmm/fix_ftbfs_gtk_2_20.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/gtkglextmm/fix_ftbfs_gtk_2_20.patch b/community/gtkglextmm/fix_ftbfs_gtk_2_20.patch new file mode 100644 index 000000000..1755f93e3 --- /dev/null +++ b/community/gtkglextmm/fix_ftbfs_gtk_2_20.patch @@ -0,0 +1,28 @@ +Description: Fix FTBFS due to missing GdkSpanFunc definition + . + The sequence of #include directives is important - if gtk/gtkglwidget.h + is included first, before widget.h, it includes gdk.h without undefing + GDK_DISABLE_DEPRECATED - this leads to GdkSpanFunc not being defined + and compilation errors. + The fix is to first include widget.h which includes the right gdkmm header + which defines GDK_DISABLE_DEPRECATED before including gdk.h. +Forwarded: no +Bug-Ubuntu: http://launchpad.net/bugs/662572 + +Index: gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc +=================================================================== +--- gtkglextmm-1.2.0.orig/gtkglext/gtkmm/gl/widget.cc 2010-12-08 13:31:59.651270000 +0100 ++++ gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc 2010-12-08 13:32:10.871270000 +0100 +@@ -17,10 +17,10 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +-#include <gtk/gtkglwidget.h> +- + #include "widget.h" + ++#include <gtk/gtkglwidget.h> ++ + namespace Gtk + { + namespace GL |