1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
< |
* http://www.i-scream.org.uk |
4 |
< |
* Copyright (C) 2000-2002 i-scream |
3 |
> |
* http://www.i-scream.org |
4 |
> |
* Copyright (C) 2000-2003 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
7 |
|
* modify it under the terms of the GNU General Public License |
26 |
|
#include <stdio.h> |
27 |
|
#include <string.h> |
28 |
|
#include "statgrab.h" |
29 |
< |
#ifdef FREEBSD |
29 |
> |
#ifdef ALLBSD |
30 |
|
#include <sys/types.h> |
31 |
|
#endif |
32 |
|
#include <utmp.h> |
42 |
|
#if defined(SOLARIS) || defined(LINUX) |
43 |
|
struct utmp *entry; |
44 |
|
#endif |
45 |
< |
#ifdef FREEBSD |
45 |
> |
#ifdef ALLBSD |
46 |
|
struct utmp entry; |
47 |
|
FILE *f; |
48 |
|
#endif |
80 |
|
} |
81 |
|
endutent(); |
82 |
|
#endif |
83 |
< |
#ifdef FREEBSD |
83 |
> |
#ifdef ALLBSD |
84 |
|
if ((f=fopen(_PATH_UTMP, "r")) == NULL){ |
85 |
|
return NULL; |
86 |
|
} |