diff options
Diffstat (limited to 'libpam')
-rw-r--r-- | libpam/include/security/pam_malloc.h | 8 | ||||
-rw-r--r-- | libpam/include/security/pam_modules.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libpam/include/security/pam_malloc.h b/libpam/include/security/pam_malloc.h index 05ca16f0..a1062a5b 100644 --- a/libpam/include/security/pam_malloc.h +++ b/libpam/include/security/pam_malloc.h @@ -13,6 +13,10 @@ #ifndef PAM_MALLOC_H #define PAM_MALLOC_H +#ifdef __cplusplus +extern "C" { +#endif + /* these are the macro definitions for the stdlib.h memory functions */ #define malloc(s) pam_malloc(s,__FILE__,__FUNCTION__,__LINE__) @@ -66,4 +70,8 @@ extern FILE *pam_malloc_outfile; /* defaults to stdout */ extern int pam_malloc_flags; extern int pam_malloc_delay_length; /* how long to pause on errors */ +#ifdef __cplusplus +} +#endif + #endif /* PAM_MALLOC_H */ diff --git a/libpam/include/security/pam_modules.h b/libpam/include/security/pam_modules.h index c315ac26..4476e375 100644 --- a/libpam/include/security/pam_modules.h +++ b/libpam/include/security/pam_modules.h @@ -8,6 +8,10 @@ #ifndef _SECURITY_PAM_MODULES_H #define _SECURITY_PAM_MODULES_H +#ifdef __cplusplus +extern "C" { +#endif + #include <security/_pam_types.h> /* Linux-PAM common defined types */ /* -------------- The Linux-PAM Module PI ------------- */ @@ -126,6 +130,10 @@ PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh, int flags, /* take care of any compatibility issues */ #include <security/_pam_compat.h> +#ifdef __cplusplus +} +#endif + /* Copyright (C) Theodore Ts'o, 1996. * Copyright (C) Andrew Morgan, 1996-8. * All rights reserved. |