1 /* Exim: OS-specific C header file for SunOS5 aka Solaris */
2 /* Copyright (c) The Exim Maintainers 2021 */
6 #define HAVE_SYS_STATVFS_H
7 #define F_FAVAIL f_favail
8 #define SIOCGIFCONF_GIVES_ADDR
10 #define HAVE_GETIPNODEBYNAME 1
11 #define HAVE_GETIPNODEBYADDR 1
12 #define EXIM_HAVE_OPENAT
13 #define EXIM_HAVE_FUTIMENS
16 #define LOAD_AVG_KSTAT "system_misc"
17 #define LOAD_AVG_KSTAT_MODULE "unix"
18 #define LOAD_AVG_SYMBOL "avenrun_1min"
19 #define LOAD_AVG_FIELD value.ui32
21 #define os_strsignal strsignal
24 /* This is needed for some early Solaris releases, but causes trouble
25 in the current ones, so it is out by default. */
27 /* #define EXIM_SOCKLEN_T size_t */
29 /* This is different from Linux and all other PAM implementations,
32 #define PAM_CONVERSE_ARG2_TYPE struct pam_message
35 /* default is non-const */
36 #define ICONV_ARG2_TYPE const char **
38 #if _POSIX_C_SOURCE < 200112L
39 # define MISSING_UNSETENV_3
42 #if _POSIX_C_SOURCE < 200809L
43 # define MISSING_POSIX_MEMALIGN
47 /* SunOS5 doesn't accept getcwd(NULL, 0) to auto-allocate
54 # define MIN(a,b) (((a)<(b))?(a):(b))
55 # define MAX(a,b) (((a)>(b))?(a):(b))