5525N/AIn S12, ctime_r only takes 2 arguments. Fix for Solaris.
5525N/AIn S11, ctime_r still takes 3 arguments. We should eventually look into
5525N/Amodifying this patch with an ifdef for SOLARIS_11 since this will not work
5525N/Aon S11.
5253N/AThis should be investigated for sending upstream.
5253N/A
6429N/A--- a/ldap/c-sdk/libraries/libldap/tmplout.c.orig 2015-04-15 14:18:18.428844179 +0530
6429N/A+++ b/ldap/c-sdk/libraries/libldap/tmplout.c 2015-04-15 14:20:02.153860191 +0530
5253N/A@@ -48,11 +48,6 @@
5253N/A #endif
5253N/A
5253N/A
5253N/A-/* This is totally lame, since it should be coming from time.h, but isn't. */
5253N/A-#if defined(SOLARIS)
5253N/A-char *ctime_r(const time_t *, char *, int);
5253N/A-#endif
5253N/A-
5253N/A static int do_entry2text( LDAP *ld, char *buf, char *base, LDAPMessage *entry,
5253N/A struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals,
5253N/A writeptype writeproc, void *writeparm, char *eol, int rdncount,
5253N/A@@ -962,7 +957,7 @@ time2text( char *ldtimestr, int dateonly
5253N/A }
5253N/A
5253N/A gmttime = gtime( &t );
5253N/A- timestr = NSLDAPI_CTIME( &gmttime, buf, sizeof(buf) );
5253N/A+ timestr = ctime_r( &gmttime, buf);
5253N/A
5253N/A timestr[ strlen( timestr ) - 1 ] = zone; /* replace trailing newline */
5253N/A if ( dateonly ) {