From: miod Date: Thu, 22 May 2014 20:16:03 +0000 (+0000) Subject: Add explicit #include lines for stdio.h, stdlib.h and string.h; these files X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=97996bfd73dd8e64355c53a5d415e7e33fc3c01e;p=openbsd Add explicit #include lines for stdio.h, stdlib.h and string.h; these files used to be pulled via which got removed, and it turns out that there is code in the wild which currently relies upon these headers to be brought in scope by including . Although such code needs to be fixed to not rely upon any system header being automagically included by including ssl headers, our goal is not to break code for the sake of it (ok, maybe from time to time). Hopefully, this commit can be reverted in a not-so-distant future. --- diff --git a/lib/libssl/dtls1.h b/lib/libssl/dtls1.h index d91b6e6397c..2fbb815b6dc 100644 --- a/lib/libssl/dtls1.h +++ b/lib/libssl/dtls1.h @@ -61,6 +61,9 @@ #define HEADER_DTLS1_H #include +#include +#include +#include #include #ifdef __cplusplus diff --git a/lib/libssl/src/ssl/dtls1.h b/lib/libssl/src/ssl/dtls1.h index d91b6e6397c..2fbb815b6dc 100644 --- a/lib/libssl/src/ssl/dtls1.h +++ b/lib/libssl/src/ssl/dtls1.h @@ -61,6 +61,9 @@ #define HEADER_DTLS1_H #include +#include +#include +#include #include #ifdef __cplusplus