diff options
author | Monty <monty@mariadb.org> | 2022-01-05 16:37:47 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2022-01-20 15:14:59 +0200 |
commit | 9d4c0a6cabc67dca6a5044ef7ae82e4198a8aab4 (patch) | |
tree | d9b433666305e8da91966765018167866b6542bf /plugin | |
parent | 0fd4d6d3bb77b9072305f0b1d5bebfb914ad55cc (diff) | |
download | mariadb-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.txt | 8 |
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; |