-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiles.h.in
48 lines (39 loc) · 954 Bytes
/
files.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* files.h.in
*
* file locations
*
*/
#ifndef FILES_H
#define FILES_H
#include "config.h"
#include <sys/types.h>
#ifdef LINUX_MULTIFORMAT
# include "linux-acct.h"
#else
# include <stdint.h> /* GNU/kFreeBSD */
# include <sys/acct.h>
# if defined __FreeBSD__ || defined __FreeBSD_kernel__
# include <osreldate.h>
# if defined __FreeBSD_kernel__
# define __FreeBSD_version __FreeBSD_kernel_version
# endif /* __FreeBSD_kernel__ */
# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */
# define acct acctv2
# define ac_flag ac_flagx
# endif
# endif
#endif
#include <utmp.h>
#define WTMP_FILE_LOC "@WTMP_FILE_LOC@"
#define ACCT_FILE_LOC "@ACCT_FILE_LOC@"
#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@"
#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@"
/* Workaround for a kernel includes problem */
#if defined(__linux__) && defined(__alpha__)
#undef AHZ
#define AHZ 1024
#endif
#ifndef AHZ
#define AHZ 64
#endif
#endif /* ! FILES_H */