32 |
|
#ifdef ALLBSD |
33 |
|
#include <sys/types.h> |
34 |
|
#endif |
35 |
< |
#ifdef NETBSD |
35 |
> |
#if defined(NETBSD) || defined(OPENBSD) |
36 |
|
#include <limits.h> |
37 |
|
#endif |
38 |
+ |
#ifdef OPENBSD |
39 |
+ |
#include <sys/param.h> |
40 |
+ |
#endif |
41 |
|
#include <utmp.h> |
42 |
|
#ifdef CYGWIN |
43 |
|
#include <sys/unistd.h> |
49 |
|
#if defined(LINUX) || defined(FREEBSD) |
50 |
|
#define MAX_LOGIN_NAME_SIZE UT_NAMESIZE |
51 |
|
#endif |
52 |
< |
#ifdef NETBSD |
52 |
> |
#if defined(NETBSD) || defined(OPENBSD) |
53 |
|
#define MAX_LOGIN_NAME_SIZE _POSIX_LOGIN_NAME_MAX |
54 |
|
#endif |
55 |
|
#if defined(CYGWIN) |