X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnntp%2Fserv_nntp.c;h=135d773928c9de33960fff14e90be599cbbbc2fd;hb=eac17f31d1a19eb5b1db674e17c4f2dda87181f1;hp=c629fcc41856a0a839bbec8713666df7afb95dee;hpb=5aef179c6636b497db509e268b8c8426ce123d52;p=citadel.git diff --git a/citadel/modules/nntp/serv_nntp.c b/citadel/modules/nntp/serv_nntp.c index c629fcc41..135d77392 100644 --- a/citadel/modules/nntp/serv_nntp.c +++ b/citadel/modules/nntp/serv_nntp.c @@ -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 }