From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q1eww-0006tG-0H for garchives@archives.gentoo.org; Mon, 21 Mar 2011 13:15:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E40D1C07C; Mon, 21 Mar 2011 13:15:00 +0000 (UTC) Received: from hera.cwi.nl (hera.cwi.nl [192.16.191.8]) by pigeon.gentoo.org (Postfix) with ESMTP id D1D6E1C02D for ; Mon, 21 Mar 2011 13:14:12 +0000 (UTC) Received: from gentoo.org (volund.ins.cwi.nl [192.16.196.166]) by hera.cwi.nl with ESMTP id p2LDEBso011291 for ; Mon, 21 Mar 2011 14:14:11 +0100 (CET) Date: Mon, 21 Mar 2011 14:14:11 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: emboss.eclass as replacement for embassy.eclass Message-ID: <20110321131411.GN72718@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4D7F1633.1080104@gentoo.org> <201103161451.47198.vapier@gentoo.org> <4D8504EC.8060407@gentoo.org> <201103201439.18493.vapier@gentoo.org> <4D872A84.4020101@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (Darwin 9.8.0, VIM - Vi IMproved 7.3) Organization: Gentoo Foundation, Inc. X-Archives-Salt: X-Archives-Hash: e747d67afc8e8b6b4dc7d3d5c5aff372 On 21-03-2011 09:04:24 -0400, Mike Frysinger wrote: > ftell vs ftello is a bit weirder. i'd say always call ftello() all > the time and let the off_t types worry about 32 bit vs 64 bit. so in > the configure script. do something like: > AC_CHECK_FUNCS([ftello fseeko]) FYI: There is an AC_FUNC_FSEEKO macro, that is designed to deal with this specifically, in case more is necessary. > then in the header: > #ifdef HAVE_FTELLO > #define ftell(a) ftello(a) > #endif > #ifdef HAVE_FSEEKO > #define fseek(a,b,c) fseeko(a,b,c) > #endif > > and again, this should work for all targets, not just linux -- Fabian Groffen Gentoo on a different level