1 |
/* |
2 |
* $Id: logging.h,v 1.1 2003/11/18 14:22:17 root Exp $ |
3 |
*/ |
4 |
|
5 |
#ifndef _LOGGING_H_ |
6 |
#define _LOGGING_H_ |
7 |
|
8 |
#ifdef UTMP_SUPPORT |
9 |
# if ! defined(HAVE_STRUCT_UTMPX) && ! defined(HAVE_STRUCT_UTMP) |
10 |
# error cannot build with utmp support - no utmp or utmpx struct found |
11 |
# endif |
12 |
|
13 |
# ifdef HAVE_LASTLOG_H |
14 |
# include <lastlog.h> |
15 |
# endif |
16 |
# include <pwd.h> |
17 |
|
18 |
# ifdef RXVT_UTMP_SYSV |
19 |
# ifndef USER_PROCESS |
20 |
# define USER_PROCESS 7 |
21 |
# endif |
22 |
# ifndef DEAD_PROCESS |
23 |
# define DEAD_PROCESS 8 |
24 |
# endif |
25 |
# endif |
26 |
|
27 |
# ifdef __QNX__ |
28 |
# include <sys/utsname.h> |
29 |
# define ut_name ut_user |
30 |
# endif |
31 |
|
32 |
#include "logging.intpro" /* PROTOS for internal routines */ |
33 |
#endif |
34 |
#endif /* _LOGGING_H_ */ |