   -Wold-style-cast
   -Woverloaded-virtual
   -Wpointer-arith
-@@ -25,16 +26,15 @@ set(CXX_FLAGS
+@@ -27,16 +28,15 @@ set(CXX_FLAGS
   -march=native
   # -MMD
   # -std=c++0x

+#endif
 }
 
 FileUtil::ReadSmallFile::ReadSmallFile(StringPiece filename)
diff --git a/muduo/base/Logging.cc b/muduo/base/Logging.cc
index d6b9a2a..21fa5b6 100644
--- a/muduo/base/Logging.cc
+++ b/muduo/base/Logging.cc
@@ -36,7 +36,12 @@ __thread time_t t_lastSecond;

 {
 
 typedef struct sockaddr SA;
 
 
 #if VALGRIND || defined (NO_ACCEPT4)
+namespace net
+{
+namespace sockets
