OpenBSD: bump dns-result buffer to 64kB
[exim.git] / src / OS / os.h-SunOS5
CommitLineData
61ec970d
PH
1/* Exim: OS-specific C header file for SunOS5 aka Solaris */
2
3#define CRYPT_H
4#define HAVE_MMAP
5#define HAVE_SYS_STATVFS_H
6#define F_FAVAIL f_favail
7#define SIOCGIFCONF_GIVES_ADDR
8
9#define HAVE_GETIPNODEBYNAME 1
10#define HAVE_GETIPNODEBYADDR 1
11
12#define HAVE_KSTAT
13#define LOAD_AVG_KSTAT "system_misc"
14#define LOAD_AVG_KSTAT_MODULE "unix"
15#define LOAD_AVG_SYMBOL "avenrun_1min"
16#define LOAD_AVG_FIELD value.ui32
17
18#define os_strsignal strsignal
19#define OS_STRSIGNAL
20
21/* This is needed for some early Solaris releases, but causes trouble
22in the current ones, so it is out by default. */
23
36a3b041 24/* #define EXIM_SOCKLEN_T size_t */
61ec970d
PH
25
26/* This is different from Linux and all other PAM implementations,
27it seems. */
28
29#define PAM_CONVERSE_ARG2_TYPE struct pam_message
30
06cf6fdc 31
9c19b270
JH
32/* default is non-const */
33#define ICONV_ARG2_TYPE const char **
34
06cf6fdc
JH
35#if _POSIX_C_SOURCE < 200112L
36# define MISSING_UNSETENV_3
5d4d1346 37#endif
06cf6fdc
JH
38
39
3ae121c9
HSHR
40/* SunOS5 doesn't accept getcwd(NULL, 0) to auto-allocate
41a buffer */
42
43#define OS_GETCWD
44
45
0d28287c
JH
46#ifndef MIN
47# define MIN(a,b) (((a)<(b))?(a):(b))
48# define MAX(a,b) (((a)>(b))?(a):(b))
49#endif
50
61ec970d 51/* End */