Meow meow! Applied patches sent by LadySerenaKitty for improved FreeBSD compatibility.
[citadel.git] / citadel / modules / nntp / serv_nntp.c
index c629fcc41856a0a839bbec8713666df7afb95dee..135d773928c9de33960fff14e90be599cbbbc2fd 100644 (file)
@@ -51,7 +51,9 @@
 #include "ctdl_module.h"
 #include "serv_nntp.h"
 
+#ifndef __FreeBSD__
 extern long timezone;
+#endif
 
 //
 // Tests whether the supplied string is a valid newsgroup name
@@ -428,7 +430,11 @@ void nntp_newgroups(const char *cmd) {
        thetime = mktime(&tm);
        if (!strcasecmp(stringy_gmt, "GMT")) {
                tzset();
+#ifdef __FreeBSD__
+               thetime += &tm.tm_gmtoff;
+#else
                thetime += timezone;
+#endif
        }