]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pam_wrapper: Add PAM_STRERROR_CONST configure check
authorVolker Lendecke <vl@samba.org>
Mon, 1 May 2017 15:56:50 +0000 (17:56 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 5 May 2017 05:46:06 +0000 (07:46 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/pam_wrapper/wscript

index 87181c3cbeabd6a4e728ad12b7d8c11f613e0af1..aacd1d76149fec137d06f4984fa2499f8105aace 100644 (file)
@@ -80,6 +80,13 @@ def configure(conf):
                                'int pam_prompt(const pam_handle_t *_pamh, int _style, char **_resp, const char *_fmt, ...)',
                                define='HAVE_PAM_PROMPT_CONST', headers='stdio.h sys/types.h security/pam_appl.h security/pam_modules.h')
 
+        conf.CHECK_C_PROTOTYPE(
+            'pam_strerror',
+            'const char *pam_strerror(const pam_handle_t *pamh, int errnum)',
+            define='HAVE_PAM_STRERROR_CONST',
+            headers='''stdio.h sys/types.h security/pam_appl.h
+                       security/pam_modules.h''')
+
         # Find the absolute path to libpam.so.0
         libpam_path = find_library(['libpam.so.0', 'libpam.so'], conf.env.STANDARD_LIBPATH)
         conf.DEFINE('PAM_LIBRARY', ('"%s"' % libpam_path ))