diff options
author | des <des@FreeBSD.org> | 2002-04-06 19:28:08 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-06 19:28:08 +0000 |
commit | 7b72a8ff6c733bf25da91947ff362fbe055edabd (patch) | |
tree | d30224d67e83d0411d314ae7f0072b41eceea924 /contrib/openpam/include/security/openpam.h | |
parent | 4172a237d231d33a84d23463d15b4e1fdbc353fb (diff) | |
parent | 1b3dab89b21d32019ba4c46b362a853fcdb5a062 (diff) | |
download | FreeBSD-src-7b72a8ff6c733bf25da91947ff362fbe055edabd.zip FreeBSD-src-7b72a8ff6c733bf25da91947ff362fbe055edabd.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r93982,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/openpam/include/security/openpam.h')
-rw-r--r-- | contrib/openpam/include/security/openpam.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/contrib/openpam/include/security/openpam.h b/contrib/openpam/include/security/openpam.h index eb12730..b001398 100644 --- a/contrib/openpam/include/security/openpam.h +++ b/contrib/openpam/include/security/openpam.h @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/include/security/openpam.h#12 $ + * $P4: //depot/projects/openpam/include/security/openpam.h#14 $ */ #ifndef _SECURITY_OPENPAM_H_INCLUDED @@ -65,6 +65,7 @@ pam_error(pam_handle_t *_pamh, int pam_get_authtok(pam_handle_t *_pamh, + int _item, const char **_authtok, const char *_prompt); @@ -116,19 +117,26 @@ enum { /* * Log to syslog */ -void _openpam_log(int _level, +void +_openpam_log(int _level, const char *_func, const char *_fmt, ...); -#if defined(__STDC__) && (__STDC_VERSION__ > 199901L) +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) #define openpam_log(lvl, fmt, ...) \ _openpam_log((lvl), __func__, fmt, __VA_ARGS__) -#elif defined(__GNUC__) +#elif defined(__GNUC__) && (__GNUC__ >= 2) && (__GNUC_MINOR__ >= 95) +#define openpam_log(lvl, fmt, ...) \ + _openpam_log((lvl), __func__, fmt, ##fmt) +#elif defined(__GNUC__) && defined(__FUNCTION__) #define openpam_log(lvl, fmt...) \ - _openpam_log((lvl), __func__, ##fmt) + _openpam_log((lvl), __FUNCTION__, ##fmt) #else -extern openpam_log(int _level, const char *_format, ...); +void +openpam_log(int _level, + const char *_format, + ...); #endif /* @@ -189,12 +197,14 @@ struct pam_module { * Infrastructure for static modules using GCC linker sets. * You are not expected to understand this. */ -#if defined(__GNUC__) && !defined(__PIC__) #if defined(__FreeBSD__) #define PAM_SOEXT ".so" #else -#error Static linking is not supported on your platform +#ifndef NO_STATIC_MODULES +#define NO_STATIC_MODULES +#endif #endif +#if defined(__GNUC__) && !defined(__PIC__) && !defined(NO_STATIC_MODULES) /* gcc, static linking */ #include <sys/cdefs.h> #include <linker_set.h> |