aboutsummaryrefslogtreecommitdiffstats
path: root/print/xmbibtex
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2007-08-03 22:56:15 +0800
committerarved <arved@FreeBSD.org>2007-08-03 22:56:15 +0800
commit01a6126c254a04dc7cf27a1ef3542d7725809467 (patch)
tree965e0f1fb81118989f417279913d99747da5cc1b /print/xmbibtex
parentb34f38bd406b6a41c0226613c731945d045321be (diff)
downloadfreebsd-ports-gnome-01a6126c254a04dc7cf27a1ef3542d7725809467.tar.gz
freebsd-ports-gnome-01a6126c254a04dc7cf27a1ef3542d7725809467.tar.zst
freebsd-ports-gnome-01a6126c254a04dc7cf27a1ef3542d7725809467.zip
Fix build on 64bit platforms
Diffstat (limited to 'print/xmbibtex')
-rw-r--r--print/xmbibtex/files/patch-c_refform.cc25
-rw-r--r--print/xmbibtex/files/patch-refman.cc29
2 files changed, 54 insertions, 0 deletions
diff --git a/print/xmbibtex/files/patch-c_refform.cc b/print/xmbibtex/files/patch-c_refform.cc
new file mode 100644
index 000000000000..8c6fff51d3e7
--- /dev/null
+++ b/print/xmbibtex/files/patch-c_refform.cc
@@ -0,0 +1,25 @@
+--- src/c_refform.cc.orig 2007-08-03 16:53:09.000000000 +0200
++++ c_refform.cc 2007-08-03 16:53:36.000000000 +0200
+@@ -767,11 +767,11 @@
+ }
+
+ void reftype_cb(Widget w, XtPointer client_data, XtPointer call_data) {
+- int rc;
++ intptr_t rc;
+ char dt[80];
+ int answer=0;
+
+- rc= (int)client_data;
++ rc= (intptr_t)client_data;
+ while(w && !XtIsWMShell(w)) w=XtParent(w);
+ XtPopdown(w);
+ XtDestroyWidget(w);
+@@ -850,7 +850,7 @@
+ }
+
+ void reprint_cb(Widget w, XtPointer client_data, XtPointer call_data) {
+- if ((int)client_data==0) {
++ if ((intptr_t)client_data==0) {
+ b.d->reprint=(char *)realloc(b.d->reprint,strlen("IN FILE")+1);
+ strcpy(b.d->reprint, "IN FILE");
+ }
diff --git a/print/xmbibtex/files/patch-refman.cc b/print/xmbibtex/files/patch-refman.cc
new file mode 100644
index 000000000000..7a6d77d670c8
--- /dev/null
+++ b/print/xmbibtex/files/patch-refman.cc
@@ -0,0 +1,29 @@
+--- src/refman.cc.orig 2007-08-03 16:51:55.000000000 +0200
++++ refman.cc 2007-08-03 16:52:33.000000000 +0200
+@@ -260,7 +260,7 @@
+ static Widget fsb_load, ftype, fsb_save, fsb_print;
+ XmStringTable str_list;
+
+- switch((int)client_data) {
++ switch((intptr_t)client_data) {
+ case 0: // .................................new;
+ XmListDeleteAllItems(liste);
+ key=(unsigned long *)realloc(key, sizeof(unsigned long));
+@@ -377,7 +377,7 @@
+ ref =new char[100];
+ str_list=(XmStringTable) XtMalloc(sizeof(XmString));
+
+- switch((int)client_data) {
++ switch((intptr_t)client_data) {
+ case 0: // ................................add new reference
+ b.ClearDummy();
+ b.d->doctype=(char *)realloc(b.d->doctype, sizeof("article")+1);
+@@ -540,7 +540,7 @@
+ gefunden[0]= 0;
+ ref = new char[100];
+
+- switch((int)client_data) {
++ switch((intptr_t)client_data) {
+ case 0: // ................................. search in all fields;
+ i=0;
+ XtSetArg(args[i], XmNtitle, "Search all fields"); i++;