mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
- Fix build with clang
- Trim Makefile headers
This commit is contained in:
parent
c427ff5bae
commit
490a9407b8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320845
@ -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
|
||||
|
18
sysutils/xdu/files/patch-xwin.c
Normal file
18
sysutils/xdu/files/patch-xwin.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user