Re: header protection for __FD_SET et al.

a sun (asun@zoology.washington.edu)
Fri, 13 Jun 1997 08:45:21 -0700 (PDT)


> posix-types.h doesn't check for previous declarations of __FD_SET et
> al. as glibc has its own representation of fd_set, this results in
> problems. here's a patch against 2.1.42 which adds a little #define
> protection to the relevant files:

No. Glibc should not give a tinker's cuss what's in <asm/posix_types.h>.
The fix is to Not Do That in glibc, which is what I did in current snaps.

actually, i'm running a pretty recent glibc snapshot. the problem
comes from <sys/socket.h>. it eventually includes <asm/posix_types.h>
by way of <asm/socket.h>. i suppose the "#define _LINUX_TYPES_H"
header-prevention trick can be used, but i've always thought of that
as massively hokey.

-a