X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcmdline.cc;h=5c3d09f2960487a8169d9b57ab807aa681193120;hb=7bca10ca93172c1417f10c630a13c7aa88617ded;hp=3179d1928c89a07c101a57d2b5ce16172018deff;hpb=81204a653b40f87ae9f43fd8ee12cc8177021f3a;p=m6w6%2Flibmemcached diff --git a/libtest/cmdline.cc b/libtest/cmdline.cc index 3179d192..5c3d09f2 100644 --- a/libtest/cmdline.cc +++ b/libtest/cmdline.cc @@ -82,7 +82,6 @@ extern "C" { namespace { -#if 0 std::string print_argv(libtest::vchar_ptr_t& built_argv) { std::stringstream arg_buffer; @@ -96,8 +95,8 @@ namespace { return arg_buffer.str(); } -#endif +#if 0 std::string print_argv(char** argv) { std::stringstream arg_buffer; @@ -109,6 +108,7 @@ namespace { return arg_buffer.str(); } +#endif static Application::error_t int_to_error_t(int arg) { @@ -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)