bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sys_socket: sockaddr_storage, new module alignof


From: Simon Josefsson
Subject: Re: sys_socket: sockaddr_storage, new module alignof
Date: Fri, 08 May 2009 13:03:32 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.93 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Simon Josefsson wrote:
>> +#define _SS_PADSIZE (_SS_SIZE - (max (sizeof (sa_family_t),         \
>> +                                      alignof (__ss_aligntype))     \
>> +                                 + sizeof (__ss_aligntype)))
>
> Fine, except that 'alignof' is not a predefined macro. We have a definition
> of it in "malloca.h" and in some .c files from glibc. OSF/1 has it in a file
> <alignof.h>, but it contains nothing better than our alignof macro.
>
> I propose to create a module like this:

Looks fine to me.  If you push it, I can make sys_socket depend on it.

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]