summaryrefslogtreecommitdiff
path: root/libpam_misc/include/security
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 /libpam_misc/include/security
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 'libpam_misc/include/security')
-rw-r--r--libpam_misc/include/security/pam_misc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libpam_misc/include/security/pam_misc.h b/libpam_misc/include/security/pam_misc.h
index b1ae03d0..0ec2fdd1 100644
--- a/libpam_misc/include/security/pam_misc.h
+++ b/libpam_misc/include/security/pam_misc.h
@@ -6,6 +6,10 @@
#include <security/pam_appl.h>
#include <security/pam_client.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* include some useful macros */
#include <security/_pam_macros.h>
@@ -51,7 +55,8 @@ extern char **pam_misc_drop_env(char **env);
extern int pam_misc_setenv(pam_handle_t *pamh, const char *name
, const char *value, int readonly);
-#endif
+#ifdef __cplusplus
+}
+#endif /* def __cplusplus */
-
-
+#endif /* ndef __PAMMISC_H */