1 /* Exim: OS-specific C header file for SunOS5 aka Solaris */
5 #define HAVE_SYS_STATVFS_H
6 #define F_FAVAIL f_favail
7 #define SIOCGIFCONF_GIVES_ADDR
9 #define HAVE_GETIPNODEBYNAME 1
10 #define HAVE_GETIPNODEBYADDR 1
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
18 #define os_strsignal strsignal
21 /* This is needed for some early Solaris releases, but causes trouble
22 in the current ones, so it is out by default. */
24 /* #define EXIM_SOCKLEN_T size_t */
26 /* This is different from Linux and all other PAM implementations,
29 #define PAM_CONVERSE_ARG2_TYPE struct pam_message
32 /* default is non-const */
33 #define ICONV_ARG2_TYPE const char **
35 #if _POSIX_C_SOURCE < 200112L
36 # define MISSING_UNSETENV_3
40 /* SunOS5 doesn't accept getcwd(NULL, 0) to auto-allocate
47 # define MIN(a,b) (((a)<(b))?(a):(b))
48 # define MAX(a,b) (((a)>(b))?(a):(b))
51 extern char * strndup(const char *, size_t);