Dear all,

ssl/kssl.c contains at the beginning

#define _XOPEN_SOURCE 500 /* glibc2 needs this to declare strptime() */
#include <time.h>
#if 0 /* experimental */
#undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
#endif

This results in compilation problems on recent FreeBSD systems
when you lateron include ssl.h, which includes dtls1.h,
which we have modified to include netinet/sctp.h.
The problem is that sctp.h needs the stucture sin6 which is defined
in netinet/in6.h which gets included by netinet/in.h , but only
when #if __POSIX_VISIBLE >= 200112 is true. Defining  _XOPEN_SOURCE
to 500 avoids that, even if you undef _XOPEN_SOURCE.

Removing the above code completely resolves the issue. I have tested
compilation with the attached patch on Fedora 9, FreeBSD 7.1 and FreeBSD 8.

Best regards
Michael

Attachment: kssl.patch
Description: Binary data


Reply via email to