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 1Q3rzs-0000A0-NO for garchives@archives.gentoo.org; Sun, 27 Mar 2011 15:35:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D216B1C109; Sun, 27 Mar 2011 15:35:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C17981C105 for ; Sun, 27 Mar 2011 15:34:42 +0000 (UTC) Received: from paul.ibi.kfa-juelich.de (ip-62-143-16-215.unitymediagroup.de [62.143.16.215]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jlec) by smtp.gentoo.org (Postfix) with ESMTPSA id B4E141B401A; Sun, 27 Mar 2011 15:34:41 +0000 (UTC) Message-ID: <4D8F590E.3000104@gentoo.org> Date: Sun, 27 Mar 2011 17:34:38 +0200 From: justin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110321 Lightning/1.0b3pre Thunderbird/3.1.9 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: emboss.eclass as replacement for embassy.eclass References: <4D7F1633.1080104@gentoo.org> <201103161451.47198.vapier@gentoo.org> <4D8504EC.8060407@gentoo.org> <201103201439.18493.vapier@gentoo.org> <4D872A84.4020101@gentoo.org> <4D8F4ADE.3030207@gentoo.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1EA14AFD5E69F3C40ACDB848" X-Archives-Salt: X-Archives-Hash: ce2416a41043d6444a767bb6a09796a8 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1EA14AFD5E69F3C40ACDB848 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 27/03/11 16:50, Mike Frysinger wrote: > On Sun, Mar 27, 2011 at 10:34 AM, justin wrote: >> So I need one last hint, how to correct following correctly? >> >> >> #if defined (HAVE64) && !defined(AJ_MACOSXLF) && !defined(AJ_HPUXLF) &= & >> !defined(AJ_FreeBSDLF) && !defined(AJ_AIXLF) >> struct dirent64 *dp; >> #else >> struct dirent *dp; >> #endif >> >> #if defined (HAVE64) && !defined(AJ_MACOSXLF) && !defined(AJ_HPUXLF) &= & >> !defined(AJ_FreeBSDLF) && !defined(AJ_AIXLF) >> struct stat64 sbuf; >> #else >> struct stat sbuf; >> #endif >=20 > neither should be necessary with LFS. if you call > AC_USE_SYSTEM_EXTENSIONS or AC_SYS_LARGEFILE, the system will take > care of translating stat into stat64 as needed. >=20 > but in practice, i guess what they'll want to do is: > - call AC_USE_SYSTEM_EXTENSIONS at top of configure script > - add some AC_TRY_COMPILE's: > AC_CACHE_CHECK([for stat64], ac_cv_struct_stat64, > [AC_TRY_COMPILE([#include ], > [struct stat64 st], > ac_cv_struct_stat64=3Dyes, ac_cv_struct_stat64=3Dno)]) > if test "x$ac_cv_struct_stat64" =3D xyes; then > AC_DEFINE(HAVE_STRUCT_STAT64) > fi > - change the code to look at HAVE_STRUCT_STAT64 instead of random > system defines >=20 > (largely untested :P) > -mike >=20 Thanks Mike, compiletime and runtime tests are fine. I really owe you one! --------------enig1EA14AFD5E69F3C40ACDB848 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2PWQ4ACgkQgAnW8HDreRY+pwCghOv2is1nldfBHxKpmt3eghcl tasAn1MHTIqa+iqTvxZfik0f8pE75s3Z =MJDE -----END PGP SIGNATURE----- --------------enig1EA14AFD5E69F3C40ACDB848--