summaryrefslogtreecommitdiffstats
path: root/src/sss_client
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-05-19 13:24:18 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-05-22 12:42:28 +0200
commit0a111b876c59ea7b5eab4b33449966d6005dc5b1 (patch)
tree4664f3278f4a39cdfb5dc317169f61f069ea95ff /src/sss_client
parentdca741129d221558a4325479aefc617240f1ab08 (diff)
downloadsssd-0a111b876c59ea7b5eab4b33449966d6005dc5b1.tar.gz
sssd-0a111b876c59ea7b5eab4b33449966d6005dc5b1.tar.xz
sssd-0a111b876c59ea7b5eab4b33449966d6005dc5b1.zip
sss_client: Fix warning "_" redefined
"enum sss_authtok_type" is defined in sss_client/pam_message.h So it's better to include it instead of "util/authtok.h". "util/authtok.h" includes many header files including "util/util.h" CC src/util/crypto/nss/libsss_crypt_la-nss_base64.lo src/sss_client/pam_sss.c:48:0: error: "_" redefined [-Werror] #define _(STRING) dgettext (PACKAGE, STRING) ^ In file included from ../sssd/src/util/authtok.h:23:0, from ../sssd/src/sss_client/pam_message.h:29, from ../sssd/src/sss_client/pam_sss.c:43: src/util/util.h:55:0: note: this is the location of the previous definition #define _(STRING) gettext (STRING) ^ Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/pam_message.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/pam_message.h b/src/sss_client/pam_message.h
index 1c8dd381a..3b3841a2c 100644
--- a/src/sss_client/pam_message.h
+++ b/src/sss_client/pam_message.h
@@ -26,7 +26,7 @@
#include <unistd.h>
#include <stdint.h>
-#include "util/authtok.h"
+#include "sss_client/sss_cli.h"
struct pam_items {
const char *pam_service;