17 |
|
* License along with this library; if not, write to the Free Software |
18 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
19 |
|
* 02111-1307 USA |
20 |
+ |
* |
21 |
+ |
* $Id$ |
22 |
|
*/ |
23 |
|
|
24 |
|
#ifdef HAVE_CONFIG_H |
32 |
|
#ifdef ALLBSD |
33 |
|
#include <sys/types.h> |
34 |
|
#endif |
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> |
44 |
+ |
#endif |
45 |
|
|
46 |
|
#ifdef SOLARIS |
47 |
|
#define MAX_LOGIN_NAME_SIZE 8 |
48 |
|
#endif |
49 |
< |
#if defined(LINUX) || defined(FREEBSD) |
49 |
> |
#if defined(LINUX) || defined(FREEBSD) || defined(DFBSD) |
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) |