Fix all warnings found via clang.
[awesomized/libmemcached] / libtest / cmdline.cc
index 5cb76bff04bb9b4d895f43a86e33d1e53f2d77fa..5c3d09f2960487a8169d9b57ab807aa681193120 100644 (file)
@@ -623,7 +623,7 @@ void Application::Pipe::reset()
   close(READ);
   close(WRITE);
 
-#if HAVE_PIPE2
+#if defined(HAVE_PIPE2) && HAVE_PIPE2
   if (pipe2(_pipe_fd, O_NONBLOCK) == -1)
 #else
   if (pipe(_pipe_fd) == -1)