Bug#233946: libc6-dev: <sys/un.h> does not define UNIX_PATH_MAX
Carlos O'Donell <carlos@baldric.uwo.ca> wrote:
Hi,
>> I understand this snippet of code in the manpage as "look, this is how
>> the thing is defined in the header", not as sample code.
>
> No, that's what the *real* header is there for :)
Sure :-) But that's how I understand the manpage, so maybe there's
room for improvement there.
> The snippet defines only example code for creating your own structure.
> You should probably be doing something like:
>
> struct sockaddr_un sizecheck;
> #ifndef UNIX_PATH_MAX
> #define UNIX_PATH_MAX sizeof(sizecheck.sun_path)
> #endif
Hmm. I'll do that, yes. Thanks.
> Julien, can this bug be closed?
Yep.
JB.
--
Julien BLACHE <jblache@debian.org> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
Reply to: