summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-02-23 07:50:43 +0100
committerSergei Golubchik <sergii@pisem.net>2012-02-23 07:50:43 +0100
commit52108aa70c968d8a75adcbd66d8a88aaa3e1b0ad (patch)
tree51057283f445c8a72a080104d0c5490cfa4dd8d2 /plugin
parentc39877071a5ce8ba3c8dc7a1963e3c542e6cc83b (diff)
downloadmariadb-git-52108aa70c968d8a75adcbd66d8a88aaa3e1b0ad.tar.gz
HAVE_STRNDUP check for pam plugin
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_pam/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/auth_pam/CMakeLists.txt b/plugin/auth_pam/CMakeLists.txt
index 74ad76de78b..f75c2f01f06 100644
--- a/plugin/auth_pam/CMakeLists.txt
+++ b/plugin/auth_pam/CMakeLists.txt
@@ -1,6 +1,8 @@
INCLUDE (CheckIncludeFiles)
+INCLUDE (CheckFunctionExists)
CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H)
+CHECK_FUNCTION_EXISTS (strndup HAVE_STRNDUP)
IF(HAVE_PAM_APPL_H)
MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam MODULE_ONLY)