X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcmdline.cc;h=5c3d09f2960487a8169d9b57ab807aa681193120;hb=5cac64189701682ebc7c89f4daaddc426fc5073e;hp=8cb76252259e6edef69bc302a8944db29e791d3b;hpb=f47caf2833675cce0b62a6e4ffd6764c1490a8b4;p=awesomized%2Flibmemcached diff --git a/libtest/cmdline.cc b/libtest/cmdline.cc index 8cb76252..5c3d09f2 100644 --- a/libtest/cmdline.cc +++ b/libtest/cmdline.cc @@ -96,6 +96,7 @@ namespace { return arg_buffer.str(); } +#if 0 std::string print_argv(char** argv) { std::stringstream arg_buffer; @@ -107,6 +108,7 @@ namespace { return arg_buffer.str(); } +#endif static Application::error_t int_to_error_t(int arg) { @@ -621,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)