mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
Backport http://lists.mysql.com/commits/57778
2677 Vladislav Vaintroub 2008-11-04
CMakeLists.txt files cleanup
- remove SAFEMALLOC and SAFE_MUTEX definitions that were
present in *each* CMakeLists.txt. Instead, put them into top level
CMakeLists.txt, but disable on Windows, because
a) SAFEMALLOC does not add any functionality that is not already
present in Debug C runtime ( and 2 safe malloc one on top of the other
only unnecessarily slows down the server)
b)SAFE_MUTEX does not work on Windows and have been
explicitely disabled on Windows with #undef previously. Fortunately,
ntdll does pretty good job identifying l problems with
CRITICAL_SECTIONs.
DebugBreak()s on using uninited critical section, unlocking unowned
critical section)
-Also, remove occationally used -D_DEBUG (added by compiler
anyway)
This commit is contained in:
parent
46d04ebdef
commit
2801599323
20 changed files with 15 additions and 51 deletions
|
|
@ -138,11 +138,11 @@ typedef long long longlong;
|
|||
#endif
|
||||
#include <mysql.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
/* inet_aton needs winsock library */
|
||||
#pragma comment(lib, "ws2_32")
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
/* inet_aton needs winsock library */
|
||||
#pragma comment(lib, "ws2_32")
|
||||
#endif
|
||||
|
||||
static pthread_mutex_t LOCK_hostname;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue