summaryrefslogtreecommitdiff
path: root/src/include/port/solaris.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/solaris.h')
-rw-r--r--src/include/port/solaris.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/port/solaris.h b/src/include/port/solaris.h
index eeb1a320bd5..519aca3e985 100644
--- a/src/include/port/solaris.h
+++ b/src/include/port/solaris.h
@@ -26,6 +26,15 @@
#endif
/*
+ * On original Solaris, PAM conversation procs lack a "const" in their
+ * declaration; but recent OpenIndiana versions put it there by default.
+ * The least messy way to deal with this is to define _PAM_LEGACY_NONCONST,
+ * which causes OpenIndiana to declare pam_conv per the Solaris tradition,
+ * and also use that symbol to control omitting the "const" in our own code.
+ */
+#define _PAM_LEGACY_NONCONST 1
+
+/*
* Many versions of Solaris have broken strtod() --- see bug #4751182.
* This has been fixed in current versions of Solaris:
*