summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-05-22 20:16:04 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-05-22 20:16:04 +0000
commite2aa95bd3f6319316d751c070fdd1173ea6432df (patch)
treeb029769ae77451e47cf2b94234b60ce4d5f593f9 /lib
parentd4ab93adc5b53beaf686eb2c17202a677c124299 (diff)
Add explicit #include lines for stdio.h, stdlib.h and string.h; these files
used to be pulled via <openssl/pqueue.h> 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 <openssl/dtls1.h>. 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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/dtls1.h3
1 files changed, 3 insertions, 0 deletions
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 <openssl/buffer.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/time.h>
#ifdef __cplusplus