diff options
author | Gerald Carter <jerry@samba.org> | 2003-06-06 22:33:43 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-06-06 22:33:43 +0000 |
commit | b516ab7bdef6b6b2b7f0df8966dbd4c329f46a92 (patch) | |
tree | 8a90752de79dbc2cc4299e377571e7d77cdc98af /source/smbd/utmp.c | |
parent | 1e1e56efd86e7a1ed6415145ebd22d91612104de (diff) | |
download | samba-b516ab7bdef6b6b2b7f0df8966dbd4c329f46a92.tar.gz samba-b516ab7bdef6b6b2b7f0df8966dbd4c329f46a92.tar.xz samba-b516ab7bdef6b6b2b7f0df8966dbd4c329f46a92.zip |
* add in David Lee's utmp patch (defaults to on if available)
* one more try at fixing builds when --with-ldap=no
Diffstat (limited to 'source/smbd/utmp.c')
-rw-r--r-- | source/smbd/utmp.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/source/smbd/utmp.c b/source/smbd/utmp.c index 2c5a1abc824..9833a11f2d0 100644 --- a/source/smbd/utmp.c +++ b/source/smbd/utmp.c @@ -21,8 +21,6 @@ #include "includes.h" -#ifdef WITH_UTMP - /**************************************************************************** Reflect connection status in utmp/wtmp files. T.D.Lee@durham.ac.uk September 1999 @@ -110,6 +108,23 @@ Notes: ****************************************************************************/ +#ifndef WITH_UTMP +/* + * Not WITH_UTMP? Simply supply dummy routines. + */ + +void sys_utmp_claim(const char *username, const char *hostname, + struct in_addr *ipaddr, + const char *id_str, int id_num) +{} + +void sys_utmp_yield(const char *username, const char *hostname, + struct in_addr *ipaddr, + const char *id_str, int id_num) +{} + +#else /* WITH_UTMP */ + #include <utmp.h> #ifdef HAVE_UTMPX_H @@ -571,6 +586,4 @@ void sys_utmp_claim(const char *username, const char *hostname, sys_utmp_update(&u, hostname, True); } -#else /* WITH_UTMP */ - void dummy_utmp(void) {} -#endif +#endif /* WITH_UTMP */ |