The NetBSD getlogin syscall has a different name.

This commit is contained in:
John Birrell 1998-02-20 08:07:40 +00:00
parent 6abbaf17ac
commit dc2c8572e9
1 changed files with 4 additions and 0 deletions

View File

@ -50,7 +50,11 @@ getlogin()
static char logname[MAXLOGNAME];
if (_logname_valid == 0) {
#ifdef __NETBSD_SYSCALLS
if (__getlogin(logname, sizeof(logname) - 1) < 0)
#else
if (_getlogin(logname, sizeof(logname)) < 0)
#endif
return ((char *)NULL);
_logname_valid = 1;
}