mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
nss_wrapper: Add missing check for printf format validation
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
afa41f023b
commit
eb8f523b2f
@ -40,6 +40,18 @@ def configure(conf):
|
||||
addmain=False,
|
||||
msg='Checking for library destructor support')
|
||||
|
||||
# check HAVE_ATTRIBUTE_PRINTF_FORMAT
|
||||
conf.CHECK_CODE('''
|
||||
void log_fn(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
''',
|
||||
'HAVE_ATTRIBUTE_PRINTF_FORMAT',
|
||||
addmain=False,
|
||||
msg='Checking for printf format validation support')
|
||||
|
||||
conf.CHECK_FUNCS('gethostbyaddr_r gethostbyname_r')
|
||||
# Solaris
|
||||
conf.CHECK_FUNCS('__posix_getpwnam_r __posix_getpwuid_r')
|
||||
|
Loading…
Reference in New Issue
Block a user