From 4be76a55b90e6d201833c8563adb30487b6c5f16 Mon Sep 17 00:00:00 2001 From: arved Date: Fri, 20 Jan 2006 15:20:43 +0000 Subject: Fix build after MFC of swab prototype change. Unfortunately trhodes did not bump __FreeBSD_version, so use an approximation. --- sysutils/gtoaster/Makefile | 4 ---- sysutils/gtoaster/files/patch-stdfiletrack.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'sysutils') diff --git a/sysutils/gtoaster/Makefile b/sysutils/gtoaster/Makefile index 0a9635ce34b8..0e4d254b5507 100644 --- a/sysutils/gtoaster/Makefile +++ b/sysutils/gtoaster/Makefile @@ -33,10 +33,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ .include -.if ${OSVERSION} >= 504104 && ${OSVERSION} < 600000 -BROKEN= "Does not compile on FreeBSD 5.x" -.endif - .if ${HAVE_GNOME:Mgnomelibs}!="" PKGNAMESUFFIX= -gnome USE_GNOME+= gnomelibs diff --git a/sysutils/gtoaster/files/patch-stdfiletrack.c b/sysutils/gtoaster/files/patch-stdfiletrack.c index f2cf3c58ec24..16d6c6670576 100644 --- a/sysutils/gtoaster/files/patch-stdfiletrack.c +++ b/sysutils/gtoaster/files/patch-stdfiletrack.c @@ -8,7 +8,7 @@ $FreeBSD$ #ifndef __svr4__ +#include -+#if __FreeBSD_version >= 600007 ++#if __FreeBSD_version >= 504102 +void swab(const void *from,void *to,ssize_t n); +#else void swab(const void *from,void *to,size_t n); -- cgit