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
5253N/AThis should be investigated for sending upstream.
5253N/A-/* This is totally lame, since it should be coming from
time.h, but isn't. */
5253N/A-char *ctime_r(const time_t *, char *, int);
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- timestr = NSLDAPI_CTIME( &gmttime, buf, sizeof(buf) );
5253N/A+ timestr = ctime_r( &gmttime, buf);
5253N/A timestr[ strlen( timestr ) - 1 ] = zone; /* replace trailing newline */