From 2a6846f30ca44ee073d08e9473945d8d9beec8d9 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 20 Oct 2008 15:41:12 +0000 Subject: [PATCH] fixup unbound control compilation on windows. git-svn-id: file:///svn/unbound/trunk@1314 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + smallapp/unbound-control.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 45f46a90e..f836dc35b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -14,6 +14,7 @@ so that if a zone is bad on one server but not another, it is likely to pick up the 'correct' one after a couple minutes, and if the TTL is big enough that solves validation for the zone. + - fixup unbound-control compilation on windows. 17 October 2008: Wouter - port Leopard/G5: fixup type conversion size_t/uint32. diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index 9d39334cd..232956869 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -302,6 +302,10 @@ int main(int argc, char* argv[]) int c, ret; char* cfgfile = CONFIGFILE; char* svr = NULL; +#ifdef USE_WINSOCK + int r; + WSADATA wsa_data; +#endif #ifdef USE_THREAD_DEBUG /* stop the file output from unbound-control, overwites the servers */ extern int check_locking_order;