Readonly-config: not supported by Solaris 10
[exim.git] / src / OS / os.h-SunOS5
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 #define EXIM_HAVE_OPENAT
12 #define EXIM_HAVE_FUTIMENS
13
14 #define HAVE_KSTAT
15 #define LOAD_AVG_KSTAT         "system_misc"
16 #define LOAD_AVG_KSTAT_MODULE  "unix"
17 #define LOAD_AVG_SYMBOL        "avenrun_1min"
18 #define LOAD_AVG_FIELD          value.ui32
19
20 #define os_strsignal            strsignal
21 #define OS_STRSIGNAL
22
23 /* This is needed for some early Solaris releases, but causes trouble
24 in the current ones, so it is out by default. */
25
26 /* #define EXIM_SOCKLEN_T       size_t */
27
28 /* This is different from Linux and all other PAM implementations,
29 it seems. */
30
31 #define PAM_CONVERSE_ARG2_TYPE  struct pam_message
32
33
34 /* default is non-const */
35 #define ICONV_ARG2_TYPE const char **
36
37 #if _POSIX_C_SOURCE < 200112L
38 # define MISSING_UNSETENV_3
39 #endif
40
41 #if _POSIX_C_SOURCE < 200809L
42 # define MISSING_POSIX_MEMALIGN
43 #endif
44
45
46 /* SunOS5 doesn't accept getcwd(NULL, 0) to auto-allocate
47 a buffer */
48
49 #define OS_GETCWD
50
51
52 #ifndef MIN
53 # define MIN(a,b) (((a)<(b))?(a):(b))
54 # define MAX(a,b) (((a)>(b))?(a):(b))
55 #endif
56
57 /* End */