--- a/libupnpp/device.cxx
+++ b/libupnpp/device.cxx
@@ -26,6 +26,8 @@
 #include "vdir.hxx"
 #include "device.hxx"
 #include "log.hxx"
+
+namespace UPnPProvider {
 
 unordered_map<std::string, UpnpDevice *> UpnpDevice::o_devices;
 
@@ -404,3 +406,4 @@
     pthread_cond_broadcast(&evloopcond);
 }
 
+}// End namespace UPnPProvider