aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-08-09 12:38:17 -0400
committerGavin Andresen <gavinandresen@gmail.com>2011-08-09 12:38:17 -0400
commit9f0ac16942d9f15ec57204448436cd429badf481 (patch)
tree524501c819117ba912a0cdab8528303fca234636
parent2c3691d53d3f527638d4d9923c8a04488f459de0 (diff)
Do-nothing MapPort() ifndef USE_UPNP. fixes #450
-rw-r--r--src/net.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index d697788213..37adc13e14 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1143,6 +1143,11 @@ void MapPort(bool fMapPort)
printf("Error: ThreadMapPort(ThreadMapPort) failed\n");
}
}
+#else
+void MapPort(bool /* unused fMapPort */)
+{
+ // Intentionally left blank.
+}
#endif