summaryrefslogtreecommitdiff
path: root/libpamc/include
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2001-05-01 04:27:37 +0000
committerAndrew G. Morgan <morgan@kernel.org>2001-05-01 04:27:37 +0000
commit0373bb10920a5ea0f5b9f7a33033398132d2bd85 (patch)
tree8f05e6fd5dbd4c96782033f47139f9efcb69cc44 /libpamc/include
parentd1a76fd910d68bbc660ea2be9120bad62b8c9af0 (diff)
Relevant BUGIDs: 420270
Purpose of commit: bugfix Commit summary: --------------- Allow C++ compilation when using pam_misc.h and pam_client.h.
Diffstat (limited to 'libpamc/include')
-rw-r--r--libpamc/include/security/pam_client.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpamc/include/security/pam_client.h b/libpamc/include/security/pam_client.h
index 90040fbe..16a2c1b1 100644
--- a/libpamc/include/security/pam_client.h
+++ b/libpamc/include/security/pam_client.h
@@ -9,6 +9,10 @@
#ifndef PAM_CLIENT_H
#define PAM_CLIENT_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* def __cplusplus */
+
#include <unistd.h>
#include <string.h>
#include <stdio.h>
@@ -186,5 +190,8 @@ do { \
(((prompt)->control <= PAM_BPC_FAIL && (prompt)->control >= PAM_BPC_OK) \
? PAM_BPC_TRUE:PAM_BPC_FALSE)
+#ifdef __cplusplus
+}
+#endif /* def __cplusplus */
#endif /* PAM_CLIENT_H */