diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/auth/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/auth/CMakeLists.txt b/plugin/auth/CMakeLists.txt index 6a9c31f82ce..9a3682a5e96 100644 --- a/plugin/auth/CMakeLists.txt +++ b/plugin/auth/CMakeLists.txt @@ -28,7 +28,9 @@ MYSQL_ADD_PLUGIN(qa_auth_client qa_auth_client.c MODULE_ONLY) CHECK_CXX_SOURCE_COMPILES( -"#define _GNU_SOURCE +"#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include <sys/socket.h> int main() { struct ucred cred; |