Date: Thu, 3 Oct 2002 11:39:09 +1000 (EST) From: Edwin Groothuis <edwin@mavetju.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: obonilla@fisicc-ufm.edu Subject: ports/43607: [patch] unbreak net/nam Message-ID: <20021003013909.3CCAD6A712B@k7.mavetju>
next in thread | raw e-mail | index | archive | help
>Number: 43607 >Category: ports >Synopsis: [patch] unbreak net/nam >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 02 18:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.5-RELEASE i386 >Organization: - >Environment: System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Sat Sep 14 10:41:50 EST 2002 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386 $FreeBSD: ports/net/nam/Makefile,v 1.11 2002/06/09 03:16:07 petef Exp $ >Description: http://bento.freebsd.org/errorlogs/4-full/nam-1.0a9.log net/nam doesn't compile due to removal of values.h >How-To-Repeat: http://bento.freebsd.org/errorlogs/4-full/nam-1.0a9.log >Fix: Note that this fix should be forwarded to the authors of the software. This is up to the maintainer to do. Add this file as net/nam/files/patch-nam_stream.cc --- nam_stream.cc.old Thu Oct 3 11:32:39 2002 +++ nam_stream.cc Thu Oct 3 11:33:21 2002 @@ -23,7 +23,7 @@ #ifdef WIN32 #include <limits.h> #else -#include <values.h> +#include <limits.h> #endif #include <assert.h> @@ -429,7 +429,7 @@ switch(whence) { case SEEK_SET: lim = offset; break; case SEEK_CUR: lim = tell() + offset; break; - case SEEK_END: lim = MAXLONG; break; // XXX: MAXINT may not be max(off_t) + case SEEK_END: lim = LONG_MAX; break; // XXX: MAXINT may not be max(off_t) } insure_backing(lim); if (0 == fseek(back_, offset, whence)) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021003013909.3CCAD6A712B>