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-05-18 05:40:49 +0200
commit654f1abaec4e26453cb88ef02a8a71ba9aea0026 (patch)
tree2dff6b02fa31271833f14fe452338511f1b38438 /src
parente998f7e52cea5344f12a444761cb2d9cc6b00007 (diff)
downloadsssd-654f1abaec4e26453cb88ef02a8a71ba9aea0026.tar.gz
sssd-654f1abaec4e26453cb88ef02a8a71ba9aea0026.tar.xz
sssd-654f1abaec4e26453cb88ef02a8a71ba9aea0026.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>
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 af8a0da90..c9cbffaf4 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>