[JDEV] fixes for compiling jabber on solaris
Rob Kooper
kooper at cc.gatech.edu
Wed Aug 22 11:56:41 CDT 2001
Some simple fixes, one for mio_ssl.c, it uses an include (err.h) that we
don't have on solaris, not sure where it comes from
Index: jabberd/mio_ssl.c
===================================================================
RCS file: /home/cvs/jabberd/mio_ssl.c,v
retrieving revision 1.6
diff -c -r1.6 mio_ssl.c
*** jabberd/mio_ssl.c 2001/05/30 08:58:21 1.6
--- jabberd/mio_ssl.c 2001/08/22 17:03:14
***************
*** 1,5 ****
--- 1,7 ----
#include "jabberd.h"
+ #ifndef sun
#include <err.h>
+ #endif
#ifdef HAVE_SSL
HASHTABLE ssl__ctxs;
The other patch is for mod_time.c, this fixes the problem that the variable
tm_tzone does not exist in the tm struct. In theory both linux and solaris
should be able to use the tzname variable.
Index: jsm/modules/mod_time.c
===================================================================
RCS file: /home/cvs/jsm/modules/mod_time.c,v
retrieving revision 1.8
diff -c -r1.8 mod_time.c
*** jsm/modules/mod_time.c 2001/07/31 08:15:00 1.8
--- jsm/modules/mod_time.c 2001/08/22 17:04:02
***************
*** 58,65 ****
--- 58,69 ----
tstr[strlen(tstr) - 1] = '\0'; /* cut off newline */
xmlnode_insert_cdata(xmlnode_insert_tag(m->packet->iq,"display"),tstr,-1);
tzset();
+ #ifdef sun
+
xmlnode_insert_cdata(xmlnode_insert_tag(m->packet->iq,"tz"),tzname[daylight]
,-1);
+ #else
tmd = localtime(&t);
xmlnode_insert_cdata(xmlnode_insert_tag(m->packet->iq,"tz"),tmd->tm_zone,-1)
;
+ #endif
js_deliver(m->si,m->packet);
Rob
More information about the JDev
mailing list