components/desktop/thunderbird/patches/thunderbird31-501-dup-ctime-def-removal.patch
changeset 5527 611b2d6efdfe
parent 5526 570ac9aab8b2
child 5528 f2f5af510081
--- a/components/desktop/thunderbird/patches/thunderbird31-501-dup-ctime-def-removal.patch	Tue Mar 01 10:33:35 2016 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-Fix for Solaris.
-This should be investigated for sending upstream.
-
---- comm-esr31/ldap/sdks/c-sdk/ldap/libraries/libldap/tmplout.c.orig	2015-04-15 14:18:18.428844179 +0530
-+++ comm-esr31/ldap/sdks/c-sdk/ldap/libraries/libldap/tmplout.c	2015-04-15 14:20:02.153860191 +0530
-@@ -48,11 +48,6 @@
- #endif
- 
- 
--/* This is totally lame, since it should be coming from time.h, but isn't. */
--#if defined(SOLARIS) 
--char *ctime_r(const time_t *, char *, int);
--#endif
--
- static int do_entry2text( LDAP *ld, char *buf, char *base, LDAPMessage *entry,
- 	struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals,
- 	writeptype writeproc, void *writeparm, char *eol, int rdncount,
-@@ -962,7 +957,7 @@ time2text( char *ldtimestr, int dateonly
-     }
- 
-     gmttime = gtime( &t );
--    timestr = NSLDAPI_CTIME( &gmttime, buf, sizeof(buf) );
-+    timestr = ctime_r( &gmttime, buf);
- 
-     timestr[ strlen( timestr ) - 1 ] = zone;	/* replace trailing newline */
-     if ( dateonly ) {