blob: 3d1e3e69baa44590e9eb302ea834f511fb7d8b83 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/* $Id: compat.h,v 1.4 2000/03/21 19:06:58 shmit Exp $ */
#ifndef COMPAT_H
# define COMPAT_H
#include <netdb.h>
#include <syslog.h>
#include <sys/param.h>
#include <sys/types.h>
#include <netinet/in.h>
#if __GNUC__
#define RCSID(x) static const char rcsid[] __attribute__((__unused__)) = x
#else
#define RCSID(x) static const char rcsid[] = x
#endif
#if OS_SOLARIS
#define NEED_SNPRINTF 1
#define NEED_SHADOW 1
#define NEED_CRYPT 1
#define NEED_SETPROCTITLE 1
#define NEED_STRINGS 1
#if SOLARIS_55
#define NEED_CRYPT 1
#include <pthread.h>
#endif
#endif /* OS_SOLARIS */
#if OS_FREEBSD
#include <libutil.h>
#if FREEBSD_2
typedef u_int32_t uint32_t;
#endif /* FREEBSD_2 */
#endif /* OS_FREEBSD */
#if OS_LINUX
#define NEED_SETPROCTITLE 1
#endif /* OS_LINUX */
#ifndef LOG_PERROR
#define LOG_PERROR 0
#endif
#ifndef IPPORT_HIFIRSTAUTO
#define IPPORT_HIFIRSTAUTO 49152
#endif
#ifndef IPPORT_HILASTAUTO
#define IPPORT_HILASTAUTO 65535
#endif
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 1024
#endif
#if NEED_SETPROCTITLE
void setproctitle(const char *fmt, ...);
#endif
#if NEED_SNPRINTF
int snprintf(char *str, size_t size, const char *fmt, ...);
#endif
#if NEED_MEMCPY
void *memcpy(void *dst, const void *src, size_t len);
#endif
#if NEED_MEMSET
void *memcpy(void *dst, char c, size_t len);
#endif
#if NEED_SETPROCTITLE
void setproctitle(const char *fmt, ...);
#endif
#endif
|