summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-05-17 17:31:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-03 13:43:33 +0200
commit1659171ed9585201df90003559884e070bd9cb69 (patch)
treecca1200866ba888288d4c01359efb6ef4339f0d2 /src
parent13e0c411b3106663399ca9fcd79c55ae10276873 (diff)
downloadsssd-1659171ed9585201df90003559884e070bd9cb69.tar.gz
sssd-1659171ed9585201df90003559884e070bd9cb69.tar.xz
sssd-1659171ed9585201df90003559884e070bd9cb69.zip
PAM: Fix problem with missing declaration.
The functions strdup and strncmp are used in pam_test_client, but header file string.h was not included directly in this file. The header file string.h was indirectly included by the header file security/pam_client.h. src/sss_client/pam_test_client.c: In function 'main': src/sss_client/pam_test_client.c:45: error: implicit declaration of function 'strdup' src/sss_client/pam_test_client.c:45: warning: incompatible implicit declaration of built-in function 'strdup' src/sss_client/pam_test_client.c:49: warning: incompatible implicit declaration of built-in function 'strdup' src/sss_client/pam_test_client.c:52: warning: incompatible implicit declaration of built-in function 'strdup' src/sss_client/pam_test_client.c:64: error: implicit declaration of function 'strncmp' gmake[2]: *** [src/sss_client/pam_test_client.o] Error 1 sh-4.2$ nm --undefined-only ./pam_test_client | grep -E "strdup|strncmp" U __strdup@@GLIBC_2.2.5 U strncmp@@GLIBC_2.2.5 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> (cherry picked from commit 654f1abaec4e26453cb88ef02a8a71ba9aea0026)
Diffstat (limited to 'src')
-rw-r--r--src/sss_client/pam_test_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sss_client/pam_test_client.c b/src/sss_client/pam_test_client.c
index ef424e77c..e93b62590 100644
--- a/src/sss_client/pam_test_client.c
+++ b/src/sss_client/pam_test_client.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <unistd.h>
+#include <string.h>
#include <security/pam_appl.h>
#include <security/pam_misc.h>