From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2005 invoked by alias); 4 Aug 2004 20:48:11 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 1989 invoked from network); 4 Aug 2004 20:48:11 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 4 Aug 2004 20:48:11 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 8EAFC9D24DB; Wed, 4 Aug 2004 22:48:10 +0200 (CEST) To: Jakub Jelinek Cc: Ulrich Drepper , Glibc hackers , jvdias@redhat.com Subject: Re: [PATCH] Change res_init to take (lazilly) effect in all threads References: <20040804162551.GF30497@sunsite.ms.mff.cuni.cz> From: Andreas Schwab X-Yow: Are we THERE yet? Date: Wed, 04 Aug 2004 20:48:00 -0000 In-Reply-To: <20040804162551.GF30497@sunsite.ms.mff.cuni.cz> (Jakub Jelinek's message of "Wed, 4 Aug 2004 18:25:51 +0200") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-08/txt/msg00007.txt.bz2 Jakub Jelinek writes: > --- libc/resolv/resolv.h.jj 2004-08-04 14:42:23.000000000 +0200 > +++ libc/resolv/resolv.h 2004-08-04 14:54:25.568907618 +0200 > @@ -134,6 +134,12 @@ struct __res_state { > u_int16_t nscount6; > u_int16_t nsinit; > struct sockaddr_in6 *nsaddrs[MAXNS]; > +#ifdef _LIBC > + unsigned long long int initstamp > + __attribute__((aligned (sizeof (long)))); > +#else > + unsigned int _initstamp[2]; > +#endif You can't decrease alignment with the aligned attribute unless you also add packed. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."