summaryrefslogtreecommitdiff
path: root/x11-fm
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-09-15 19:50:59 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-09-15 19:50:59 +0000
commitf8478461222c738f5ae5a31d3f92d0ec7a2db333 (patch)
treefc0d3754ebfa0a76938f3eba302fab47ce5d13a0 /x11-fm
parent- Unbreak on sparc64 and amd64 (diff)
- Fix build on sparc64
- UNBREAK on amd64 Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=220389
Diffstat (limited to 'x11-fm')
-rw-r--r--x11-fm/xdiskusage/Makefile4
-rw-r--r--x11-fm/xdiskusage/files/patch-xdiskusage.C20
2 files changed, 20 insertions, 4 deletions
diff --git a/x11-fm/xdiskusage/Makefile b/x11-fm/xdiskusage/Makefile
index a32ca865a16d..06032ba4b982 100644
--- a/x11-fm/xdiskusage/Makefile
+++ b/x11-fm/xdiskusage/Makefile
@@ -28,10 +28,6 @@ CXXFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
.endif
-.if ${OSVERSION} >= 700042 && ${ARCH} == "amd64"
-BROKEN= Does not compile
-.endif
-
do-build:
.for i in panels xdiskusage
${CXX} ${CXXFLAGS} -I${LOCALBASE}/include -c \
diff --git a/x11-fm/xdiskusage/files/patch-xdiskusage.C b/x11-fm/xdiskusage/files/patch-xdiskusage.C
new file mode 100644
index 000000000000..7a24da6f7b3f
--- /dev/null
+++ b/x11-fm/xdiskusage/files/patch-xdiskusage.C
@@ -0,0 +1,20 @@
+--- xdiskusage.C.orig 2008-09-15 19:21:03.000000000 +0000
++++ xdiskusage.C 2008-09-15 19:23:54.000000000 +0000
+@@ -988,7 +988,7 @@
+ void OutputWindow::sort_cb(Fl_Widget* o, void*v) {
+ OutputWindow* d = (OutputWindow*)(o->window());
+ int (*compare)(const Node*, const Node*);
+- switch ((int)v) {
++ switch ((unsigned long)v) {
+ case 's': compare = largestfirst; break;
+ case 'r': compare = smallestfirst; break;
+ case 'a': compare = alphabetical; break;
+@@ -1001,7 +1001,7 @@
+
+ void OutputWindow::columns_cb(Fl_Widget* o, void*v) {
+ OutputWindow* d = (OutputWindow*)(o->window());
+- int n = (int)v;
++ unsigned long n = (unsigned long)v;
+ ::ncols = n;
+ if (n == d->ncols) return;
+ if (d->current_depth > d->root_depth+n-1) {