[openssl.org #1900] FreeBSD compile problem with _XOPEN_SOURCE defined

2009-04-16 Thread Robin Seggelmann via RT
In ssl/kssl.c the constant _XOPEN_SOURCE is defined which results in using an old POSIX version and compilation problems on recent FreeBSD systems when adding SCTP support (necessary for SCTP-aware DTLS). With _XOPEN_SOURCE defined to 500, in sys/cdefs.h the constant _POSIX_C_SOURCE will

[openssl.org #1900] FreeBSD compile problem with _XOPEN_SOURCE defined

2009-04-16 Thread Robin Seggelmann via RT
The corresponding patch for 0.9.8 and 1.0.0: --- ssl/kssl.c 2009-02-14 22:49:38.0 +0100 +++ ssl/kssl.c 2009-04-16 13:30:18.0 +0200 @@ -68,7 +68,7 @@ #include openssl/opensslconf.h -#define _XOPEN_SOURCE 500 /* glibc2 needs this to declare strptime() */ +#define

[openssl.org #1900] FreeBSD compile problem with _XOPEN_SOURCE defined

2009-04-16 Thread Robin Seggelmann via RT
I just had another look at the code in ssl/kssl.c and didn't find any use of strptime(). The header file time.h doesn't need to be included at all, because there is nothing (left) requiring it. So the code should be removed. --- ssl/kssl.c 2009-02-14 22:49:38.0 +0100 +++