diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-14 18:03:48 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-14 18:03:48 +0000 |
commit | e4b8424f336a69682278ac3b5d2bdc4a90ee0fff (patch) | |
tree | 7fa01b5d6e789a414aab041ca7a0197b3c41f716 /databases/mysql-gui/files/patch-gif.cc | |
parent | - Force linker path so libobjc.so will still be found. (diff) |
- Fix patching
- Fix build on 4.x
- Add patches to build on 5.x from edwin
Note this does not build on 5.x, my C++ fu is not good enough to overcome
iterator usage in admin.cc. Patches are welcomed.
PR: ports/47862
Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> (maintainer)
Notes
Notes:
svn path=/head/; revision=95806
Diffstat (limited to 'databases/mysql-gui/files/patch-gif.cc')
-rw-r--r-- | databases/mysql-gui/files/patch-gif.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/databases/mysql-gui/files/patch-gif.cc b/databases/mysql-gui/files/patch-gif.cc new file mode 100644 index 000000000000..33276477b436 --- /dev/null +++ b/databases/mysql-gui/files/patch-gif.cc @@ -0,0 +1,17 @@ +--- gif.cc.orig Wed Apr 11 21:12:24 2001 ++++ gif.cc Mon Feb 3 03:46:27 2003 +@@ -107,11 +107,11 @@ + box(FL_NO_BOX); end(); show(); + } + ~gif_window () { +- if (p && p->data) { +- char** real_data = (char**)(p->data); ++ if (p && p->alloc_data) { ++ char** real_data = (char**)(p->alloc_data); + for (int i = 0; i < 3; i++) delete[] real_data[i]; + delete[] real_data; +- p->data = 0; delete p; p = 0; ++ p->alloc_data = 0; delete p; p = 0; + } + if (linelength) free((void*)linelength); + } |