1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Unbreak on HEAD (gcc 4.2)

PR:		ports/115744
Submitted by:	Simun Mikecin
This commit is contained in:
Ion-Mihai Tetcu 2007-08-23 07:35:53 +00:00
parent f15f66326c
commit 1550fe50c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198172
2 changed files with 30 additions and 4 deletions

View File

@ -22,10 +22,6 @@ MAN1= alevt.1x alevt-date.1 alevt-cap.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
.if defined(WITH_PNG)
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
MAKE_ARGS+= -DWITH_PNG

View File

@ -0,0 +1,30 @@
--- xio.c.orig 2002-08-20 05:09:38.000000000 +0200
+++ xio.c 2007-08-23 07:48:59.587926513 +0200
@@ -31,11 +31,11 @@
static struct dl_head dpys[1]; /* list of all displays */
+static void xio_timer();
static int
timer_init(int argc, char **argv)
{
- static void xio_timer();
int p[2], timer_pid, i;
if (pipe(p) == -1)
@@ -154,13 +154,12 @@
fdset_del_fd(fds, fd);
}
-
+static void handle_event(); //forward ref
struct xio *
xio_open_dpy(char *dpy, int argc, char **argv)
{
XClassHint classhint[1];
- static void handle_event(); //forward ref
struct xio *xio;
if (local_init(argc, argv) == -1)