From owner-freebsd-ports@FreeBSD.ORG Mon Mar 6 11:38:51 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B561B16A420 for ; Mon, 6 Mar 2006 11:38:51 +0000 (GMT) (envelope-from amdmi3@mail.ru) Received: from mx3.mail.ru (mx3.mail.ru [194.67.23.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BDE143D5A for ; Mon, 6 Mar 2006 11:38:51 +0000 (GMT) (envelope-from amdmi3@mail.ru) Received: from [213.148.29.33] (port=37141 helo=nexii.panopticon) by mx3.mail.ru with esmtp id 1FGE2y-000AJv-00 for freebsd-ports@freebsd.org; Mon, 06 Mar 2006 14:38:42 +0300 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id C38991140F for ; Mon, 6 Mar 2006 14:42:32 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 36F0484C; Mon, 6 Mar 2006 14:39:08 +0300 (MSK) Date: Mon, 6 Mar 2006 14:39:08 +0300 From: Dmitry Marakasov To: freebsd-ports@freebsd.org Message-ID: <20060306113908.GA924@hades.panopticon> Mail-Followup-To: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Using *round* math functions on 4.x X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 11:38:51 -0000 Hi! I wonder if there is clear way to make FreeBSD 4.x compatible ports of software which uses *round* (round, lround, lroundf etc.) functions. Math.h in 4.x doesn't seem to have these functions, and I am not sure if #define implementations I usually include as patches are safe. Maybe there's some library that may be conditially used on specific $OSVERSION (like it's done with gnugetopt and USE_GETOPT_LONG)? Or there's example of correct and safe #define implrementation? -- Best regards, Dmitry mailto:amdmi3@mail.ru