2
## 15_fix_gcc_4_0.dpatch by Otavio Salvador <otavio@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix FTBFS with GCC 4.0.
8
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16
-patch) patch -p1 ${patch_opts} < $0;;
17
-unpatch) patch -R -p1 ${patch_opts} < $0;;
19
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
26
--- tcm-2.20+TSQD.orig/src/sd/dv/erdiagram.c
27
+++ tcm-2.20+TSQD/src/sd/dv/erdiagram.c
29
#include "replacedialog.h"
30
#include "erdiagram.h"
36
ERDiagram::ERDiagram(Config *c, ERWindow *d, ERViewer *v, ERGraph *g):
38
--- tcm-2.20+TSQD.orig/src/sd/dv/function.h
39
+++ tcm-2.20+TSQD/src/sd/dv/function.h
41
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
43
//-----------------------------------------------------------------------------
46
+#ifndef _FUNCTION_CLASS_H
47
+#define _FUNCTION_CLASS_H
51
--- tcm-2.20+TSQD.orig/src/ui/menu.c
52
+++ tcm-2.20+TSQD/src/ui/menu.c
54
XmNindicatorType, XmONE_OF_MANY, 0);
57
- if ((int)items[i].userData & 0x1)
58
+ if ((long)items[i].userData & 0x1)
59
XtVaSetValues(submenu, XmNset, True, 0);
62
--- tcm-2.20+TSQD.orig/src/ui/application.h
63
+++ tcm-2.20+TSQD/src/ui/application.h
70
/// generic window-based application class. See: MWidget.
71
class Application: public MWidget {