Bug#338290: Can't start X twice on GNU/kFreeBSD
Hi David.
> Have you seen the annotation that Aurelien did on Jan 2nd
> in the upstream bug report?:
Yes, it is another approach to fix it.
In fact, this coding style is already used i.e. in
extras/Mesa/src/glx/mini/miniglx_events.c
GNU/kFreeBSD has problem with
namelen = strlen(sockname.sun_path) + sizeof(sockname.sun_family);
It will work with either
namelen = strlen(sockname.sun_path) + offsetof(struct sockaddr_un, sun_path);
or
namelen = sizeof(struct sockaddr_un);
The first fix is closer to previous code, both are correct.
> Anyway, I am applying your patch, as it is correct for you.
Thanks
Petr
Reply to: