diff options
author | Vladislav Vaintroub <vvaintroub@linux-rbsx> | 2010-01-18 21:38:30 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@linux-rbsx> | 2010-01-18 21:38:30 +0100 |
commit | 10a7c78ed4a57cba4e5cb5ce53388ce162a568bf (patch) | |
tree | e99171e5b0798796ade1ba87dc6d1e5856212ba5 /storage/innobase | |
parent | a87f4e1bbb9ab0296867ca92fd14472523c412ce (diff) | |
download | mariadb-git-10a7c78ed4a57cba4e5cb5ce53388ce162a568bf.tar.gz |
just in case old linux is used, add _GNU_SOURCE preprocessor constant to be able to see pthread_rwlock_t
Diffstat (limited to 'storage/innobase')
-rw-r--r-- | storage/innobase/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/CMakeLists.txt b/storage/innobase/CMakeLists.txt index c91bb3a6d6f..1230ab3a10a 100644 --- a/storage/innobase/CMakeLists.txt +++ b/storage/innobase/CMakeLists.txt @@ -22,7 +22,7 @@ INCLUDE(CheckCSourceRuns) # OS tests IF(UNIX) IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") - ADD_DEFINITIONS("-DUNIV_LINUX") + ADD_DEFINITIONS("-DUNIV_LINUX -D_GNU_SOURCE=1") ELSEIF(CMAKE_SYSTEM_NAME MATCHES "HP*") ADD_DEFINITIONS("-DUNIV_HPUX -DUNIV_MUST_NOT_INLINE") ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "AIX") |