浏览代码

adding include of openssl/err.h to fix errors when NO_SSL_DL is defined:
mongoose.c:4680:23: error: ‘ERR_get_error’ was not declared in this scope
mongoose.c:4681:52: error: ‘ERR_error_string’ was not declared in this scope

bick 12 年之前
父节点
当前提交
ea81a22529
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mongoose.c

+ 1 - 0
mongoose.c

@@ -308,6 +308,7 @@ static const char *http_500_error = "Internal Server Error";
 
 #if defined(NO_SSL_DL)
 #include <openssl/ssl.h>
+#include <openssl/err.h>
 #else
 // SSL loaded dynamically from DLL.
 // I put the prototypes here to be independent from OpenSSL source installation.