X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Flimit-connect.cpp;h=9f1b7f4263ba466770d60e70753d7c57f58543c9;hb=747b7d6d88367280441801e31a8387c4f224dcea;hp=1568ff4736d3f9b722d9e93aa7d169b6e21d5fa1;hpb=1a5ef336a2700bc8399f43a473ffc49bd81f37c8;p=yazpp-moved-to-github.git diff --git a/src/limit-connect.cpp b/src/limit-connect.cpp index 1568ff4..9f1b7f4 100644 --- a/src/limit-connect.cpp +++ b/src/limit-connect.cpp @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2009 Index Data and Mike Taylor + * Copyright (C) 1998-2012 Index Data and Mike Taylor * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,6 +25,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -36,11 +39,11 @@ using namespace yazpp_1; struct LimitConnect::Peer { friend class LimitConnect; - + Peer(int sz, const char *peername); ~Peer(); void add_connect(); - + char *m_peername; TimeStat m_bw; Peer *m_next;