X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_win32wrapper.cpp;h=43ca87240bff0f477cc4863fb1e73e4f12779a7b;hb=038b550c832ca890ae0adbac15b824debb644c9f;hp=88ea338c66f02b586f64f677a9502bf7ea5603ea;hpb=7aab0d12db670fea68a258d9ae2b05ea5c4615be;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index 88ea338c6..43ca87240 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -1,16 +1,28 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://wiki.inspircd.org/Credits + * Copyright (C) 2011 Adam + * Copyright (C) 2007, 2009 Dennis Friis + * Copyright (C) 2009 Daniel De Graaf + * Copyright (C) 2007-2009 Craig Edwards + * Copyright (C) 2008 John Brooks + * Copyright (C) 2007 Burlex + * Copyright (C) 2007 Robin Burchell * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + #include "inspircd_win32wrapper.h" #include "inspircd.h" #include "configreader.h" @@ -712,33 +724,41 @@ int gettimeofday(timeval *tv, void *) SYSTEMTIME st; GetSystemTime(&st); - tv->tv_sec = ServerInstance->Time(); + tv->tv_sec = time(NULL); tv->tv_usec = st.wMilliseconds; return 0; } -/* World's largest hack to make m_spanningtree work */ +/* World's largest hack to make reference<> work */ #include "../src/modules/m_spanningtree/link.h" -static void unused_Function() +#include "../src/modules/ssl.h" +static void unused_function() { reference unused_Link; reference unused_Autoconnect; + reference unused_Cert; if (unused_Link) unused_Link->Port = -1; if (unused_Autoconnect) unused_Autoconnect->NextConnectTime = -1; + if (unused_Cert) + unused_Cert->dn = ""; Autoconnect *a = unused_Autoconnect; Link *l = unused_Link; + ssl_cert *s = unused_Cert; unused_Link = reference(unused_Link); unused_Autoconnect = reference(unused_Autoconnect); + unused_Cert = reference(unused_Cert); unused_Link = reference(l); unused_Autoconnect = reference(a); + unused_Cert = reference(s); delete unused_Link; delete unused_Autoconnect; + delete unused_Cert; }