From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 7 04:00:32 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ED0437B401 for ; Thu, 7 Aug 2003 04:00:32 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31D3A43F93 for ; Thu, 7 Aug 2003 04:00:32 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h77B0VUp051944 for ; Thu, 7 Aug 2003 04:00:31 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h77B0V2G051943; Thu, 7 Aug 2003 04:00:31 -0700 (PDT) Date: Thu, 7 Aug 2003 04:00:31 -0700 (PDT) Message-Id: <200308071100.h77B0V2G051943@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Lefteris Chatzibarbas Subject: Re: ports/55320: Update port: mail/imapfilter X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lefteris Chatzibarbas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 11:00:32 -0000 The following reply was made to PR ports/55320; it has been noted by GNATS. From: Lefteris Chatzibarbas To: Kang Liu Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: ports/55320: Update port: mail/imapfilter Date: Thu, 7 Aug 2003 13:50:45 +0300 On Thu, Aug 07, 2003 at 03:05:17PM +0800, Kang Liu wrote: > I think this patch can fix build problem on 4.x :) > > --- /dev/null Thu Aug 7 15:03:19 2003 > +++ files/patch-socket.c Thu Aug 7 15:02:42 2003 > @@ -0,0 +1,12 @@ > +--- socket.c.orig Thu Aug 7 14:42:52 2003 > ++++ socket.c Thu Aug 7 15:00:17 2003 > +@@ -7,6 +7,9 @@ > + #include > + #include > + #include > ++#if __FreeBSD_version < 500000 > ++#include > ++#endif > + > + #include "config.h" > + #include "imapfilter.h" Yes, according to POSIX (IEEE Std 1003.1-2001) the timeval structure should be defined in and , but unfortunately I didn't include any of these headers in socket.c. I think there is no need to check the version of the system; the aforementioned headers should have been included in the first place. Anyway, this will be corrected in the next release (so the patch won't be needed). Thanks for your time, finding the cause of the problem.