diff options
author | arved <arved@FreeBSD.org> | 2007-08-02 21:00:15 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-08-02 21:00:15 +0800 |
commit | c34f716bba4c485f5d78a4ed740b54308ec4c479 (patch) | |
tree | 6f3ffabfe0606722d45d051869e7c3dabd745f7d /net | |
parent | c3d85465fcbe0a60a83c921dbe01430c588f86c5 (diff) | |
download | freebsd-ports-gnome-c34f716bba4c485f5d78a4ed740b54308ec4c479.tar.gz freebsd-ports-gnome-c34f716bba4c485f5d78a4ed740b54308ec4c479.tar.zst freebsd-ports-gnome-c34f716bba4c485f5d78a4ed740b54308ec4c479.zip |
Fix build on 64bit platforms
Diffstat (limited to 'net')
-rw-r--r-- | net/nam/files/patch-editview.cc | 20 | ||||
-rw-r--r-- | net/nam/files/patch-group.cc | 11 | ||||
-rw-r--r-- | net/nam/files/patch-netmodel.cc | 20 |
3 files changed, 51 insertions, 0 deletions
diff --git a/net/nam/files/patch-editview.cc b/net/nam/files/patch-editview.cc new file mode 100644 index 000000000000..5aa0cd81c7fa --- /dev/null +++ b/net/nam/files/patch-editview.cc @@ -0,0 +1,20 @@ +--- editview.cc.orig 2007-08-02 14:52:33.000000000 +0200 ++++ editview.cc 2007-08-02 14:52:53.000000000 +0200 +@@ -66,7 +66,7 @@ + } + char str[256]; + model_ = m; +- sprintf(str, "def%-u", (int)this); ++ sprintf(str, "def%-u", (intptr_t)this); + defTag_ = new Tag(str); + model_->add_tag(defTag_); + editing_stage_ = NONE; +@@ -89,7 +89,7 @@ + } + + model_ = m; +- sprintf(str, "def%-u", (int)this); ++ sprintf(str, "def%-u", (intptr_t)this); + defTag_ = new Tag(name); + model_->add_tag(defTag_); + editing_stage_ = NONE; diff --git a/net/nam/files/patch-group.cc b/net/nam/files/patch-group.cc new file mode 100644 index 000000000000..f41a0133a89e --- /dev/null +++ b/net/nam/files/patch-group.cc @@ -0,0 +1,11 @@ +--- group.cc.orig 2007-08-02 14:51:34.000000000 +0200 ++++ group.cc 2007-08-02 14:51:56.000000000 +0200 +@@ -81,7 +81,7 @@ + for (he = Tcl_FirstHashEntry(nodeHash_, &hs); + he != NULL; + he = Tcl_NextHashEntry(&hs), i++) +- mbrs[i] = (int) Tcl_GetHashValue(he); ++ mbrs[i] = (intptr_t) Tcl_GetHashValue(he); + } + + void Group::draw(View * nv, double now) { diff --git a/net/nam/files/patch-netmodel.cc b/net/nam/files/patch-netmodel.cc new file mode 100644 index 000000000000..af4841967bb9 --- /dev/null +++ b/net/nam/files/patch-netmodel.cc @@ -0,0 +1,20 @@ +--- netmodel.cc.orig 2007-08-02 14:44:09.000000000 +0200 ++++ netmodel.cc 2007-08-02 14:47:11.000000000 +0200 +@@ -308,7 +308,7 @@ + Tcl_HashEntry *he = Tcl_FindHashEntry(addrHash_, (const char *)addr); + if (he == NULL) + return -1; +- return (int)Tcl_GetHashValue(he); ++ return (intptr_t)Tcl_GetHashValue(he); + } + + //---------------------------------------------------------------------- +@@ -2761,7 +2761,7 @@ + Tcl_HashEntry *he = Tcl_FindHashEntry(objnameHash_, n); + if (he == NULL) + return -1; +- return (int)Tcl_GetHashValue(he); ++ return (intptr_t)Tcl_GetHashValue(he); + #undef STATIC_NAMELEN + } + |