summaryrefslogtreecommitdiff
path: root/tools/sniffer.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-11 17:14:15 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-11 17:14:15 -0400
commitc13927d6d3d9bf0a959d4df68a3801b69a436d6b (patch)
tree486ed7fc4a6fee565a9fd01950952154cf75e77a /tools/sniffer.cpp
parent2dc836fbb899e7af25ae725f74310e2a884d6736 (diff)
downloadmongo-c13927d6d3d9bf0a959d4df68a3801b69a436d6b.tar.gz
another sniff win attempt MINOR
Diffstat (limited to 'tools/sniffer.cpp')
-rw-r--r--tools/sniffer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/sniffer.cpp b/tools/sniffer.cpp
index d3f7d03c2d3..f44f85bf2bf 100644
--- a/tools/sniffer.cpp
+++ b/tools/sniffer.cpp
@@ -11,13 +11,17 @@
*/
+#include <pcap.h>
+
+#ifdef _WIN32
+#undef min
+#endif
+
#include "../util/builder.h"
#include "../util/message.h"
#include "../db/dbmessage.h"
#include "../client/dbclient.h"
-#include <pcap.h>
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>