This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libmudflap/mf-hooks2.c portability breakage
On Tue, 29 Jul 2003, Kai Henningsen wrote:
>> so, in the end, the following part of <sys/socket.h> which is included a
>> bit fails to compile (as u_char is undefined):
>>
>> typedef u_char sa_family_t;
>>
>> Defining _POSIX_SOURCE breaks compilation on FreeBSD.
> That would seem to be a (pretty obvious) bug in FreeBSD. After all, the
> whole intention of _POSIX_SOURCE is to make visible bits for POSIX not in
> ANSI/ISO C, such as the socket stuff.
I further investigated today, and FreeBSD 5.x has fixes; plus, I requested
a backport of these to the current -STABLE release series.
> Does it also break with the more modern
>
> #define _POSIX_C_SOURCE 2001<whatever>
No.
Gerald
--
Gerald Pfeifer (Jerry) gerald@pfeifer.com http://www.pfeifer.com/gerald/