Solaris 10 compatability, try two
[exim.git] / src / OS / os.h-SunOS5
index dd14f25c8c7655474ebe1313ef22936b2291dec7..113adc05f57504b17eb3c114a8b7f40b1c976c4e 100644 (file)
@@ -28,7 +28,26 @@ it seems. */
 
 #define PAM_CONVERSE_ARG2_TYPE  struct pam_message
 
+
 /* default is non-const */
 #define ICONV_ARG2_TYPE const char **
 
+#if _POSIX_C_SOURCE < 200112L
+# define MISSING_UNSETENV_3
+#endif
+
+
+/* SunOS5 doesn't accept getcwd(NULL, 0) to auto-allocate
+a buffer */
+
+#define OS_GETCWD
+
+
+#ifndef MIN
+# define MIN(a,b) (((a)<(b))?(a):(b))
+# define MAX(a,b) (((a)>(b))?(a):(b))
+#endif
+
+extern char * strndup(const char *, unsigned long);
+
 /* End */