The NetBSD getlogin syscall has a different name.
This commit is contained in:
parent
6abbaf17ac
commit
dc2c8572e9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user