aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-06-14 06:27:01 +0800
committermadpilot <madpilot@FreeBSD.org>2013-06-14 06:27:01 +0800
commit55801c7f0c13d99529ee7a1b1a0f1217eecb5189 (patch)
tree17b2c09de6928dd1218e5f6445338e7ae5358bce
parentc353d73cd938225aa7a51e57c86c33af3b241e02 (diff)
downloadfreebsd-ports-gnome-55801c7f0c13d99529ee7a1b1a0f1217eecb5189.tar.gz
freebsd-ports-gnome-55801c7f0c13d99529ee7a1b1a0f1217eecb5189.tar.zst
freebsd-ports-gnome-55801c7f0c13d99529ee7a1b1a0f1217eecb5189.zip
- Fix build with clang
- Trim Makefile headers
-rw-r--r--sysutils/xdu/Makefile6
-rw-r--r--sysutils/xdu/files/patch-xwin.c18
2 files changed, 19 insertions, 5 deletions
diff --git a/sysutils/xdu/Makefile b/sysutils/xdu/Makefile
index e244e789efbe..4dcbf8aaf87d 100644
--- a/sysutils/xdu/Makefile
+++ b/sysutils/xdu/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xdu
-# Date created: 9 February 1995
-# Whom: asami
-#
+# Created by: asami
# $FreeBSD$
-#
PORTNAME= xdu
PORTVERSION= 3.0
diff --git a/sysutils/xdu/files/patch-xwin.c b/sysutils/xdu/files/patch-xwin.c
new file mode 100644
index 000000000000..776f77399184
--- /dev/null
+++ b/sysutils/xdu/files/patch-xwin.c
@@ -0,0 +1,18 @@
+--- xwin.c.orig 1994-06-05 21:29:24.000000000 +0200
++++ xwin.c 2013-06-13 23:51:03.882547665 +0200
+@@ -400,12 +400,14 @@
+ &ascent, &descent, &overall);
+ cheight = overall.ascent + overall.descent;
+ if (height < (cheight + 2))
+- return;
++ return 0;
+
+ /* print label */
+ textx = x + 4;
+ texty = y + height/2.0 + (overall.ascent - overall.descent)/2.0 + 1.5;
+ XDrawString(dpy, win, gc, textx, texty, name, strlen(name));
++
++ return 0;
+ }
+
+ static Widget popup;