diff options
author | unknown <msvensson@neptunus.(none)> | 2005-11-03 10:37:49 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-11-03 10:37:49 +0100 |
commit | f8aa1db39ca5a5dfb8027706b73c644e5679d310 (patch) | |
tree | 054a50e63aeabf383220286393ed2a2821af02db /extra | |
parent | 11632315c8493725bc80b160dfd3036f15b5a2cf (diff) | |
download | mariadb-git-f8aa1db39ca5a5dfb8027706b73c644e5679d310.tar.gz |
Bug#13957 yassl: opensrv6c compile failure
- Added some ifdefs and turn off auto template instantiation, use explicit template instantiation
configure.in:
Use -Tno_implict to indicate that we specifiy which template should be instantiated.
Turn on HAVE_EXPLICIT_TEMPLATE_INSTATNTIATION
extra/yassl/src/socket_wrapper.cpp:
Include sys/filio.h if __SCO_VERSION__ is defined
extra/yassl/src/timer.cpp:
Dont' include files from within namespace yaSSL.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/src/socket_wrapper.cpp | 2 | ||||
-rw-r--r-- | extra/yassl/src/timer.cpp | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/extra/yassl/src/socket_wrapper.cpp b/extra/yassl/src/socket_wrapper.cpp index 91cea1f9753..285e0dee2e5 100644 --- a/extra/yassl/src/socket_wrapper.cpp +++ b/extra/yassl/src/socket_wrapper.cpp @@ -39,7 +39,7 @@ #include <string.h> #endif // _WIN32 -#ifdef __sun +#if defined(__sun) || defined(__SCO_VERSION__) #include <sys/filio.h> #endif diff --git a/extra/yassl/src/timer.cpp b/extra/yassl/src/timer.cpp index 4fe0d3aa4f9..8b7d2d17a84 100644 --- a/extra/yassl/src/timer.cpp +++ b/extra/yassl/src/timer.cpp @@ -26,13 +26,17 @@ #include "runtime.hpp" #include "timer.hpp" +#ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#else +#include <sys/time.h> +#endif + namespace yaSSL { #ifdef _WIN32 - #define WIN32_LEAN_AND_MEAN - #include <windows.h> - timer_d timer() { static bool init(false); @@ -57,8 +61,6 @@ namespace yaSSL { #else // _WIN32 - #include <sys/time.h> - timer_d timer() { struct timeval tv; |