summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2022-01-05 16:37:47 +0200
committerMonty <monty@mariadb.org>2022-01-20 15:14:59 +0200
commit9d4c0a6cabc67dca6a5044ef7ae82e4198a8aab4 (patch)
treed9b433666305e8da91966765018167866b6542bf /plugin
parent0fd4d6d3bb77b9072305f0b1d5bebfb914ad55cc (diff)
downloadmariadb-git-9d4c0a6cabc67dca6a5044ef7ae82e4198a8aab4.tar.gz
Fixed compiler error in auth_pam plugin
Code copied from 10.6
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_pam/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugin/auth_pam/CMakeLists.txt b/plugin/auth_pam/CMakeLists.txt
index 1f58c7567b3..0f8be704f0c 100644
--- a/plugin/auth_pam/CMakeLists.txt
+++ b/plugin/auth_pam/CMakeLists.txt
@@ -1,3 +1,7 @@
+IF(WIN32)
+ RETURN()
+ENDIF()
+
INCLUDE (CheckIncludeFiles)
INCLUDE (CheckFunctionExists)
@@ -15,8 +19,8 @@ CHECK_C_SOURCE_COMPILES(
#include <grp.h>
#include <unistd.h>
int main() {
- char *arg_1;
- gid_t arg_2, arg_3;
+ char *arg_1= 0;
+ gid_t arg_2=0, arg_3;
int arg_4;
(void)getgrouplist(arg_1,arg_2,&arg_3,&arg_4);
return 0;