summaryrefslogtreecommitdiff
path: root/net/nginx-util/src/nginx-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/nginx-util/src/nginx-util.cpp')
-rw-r--r--net/nginx-util/src/nginx-util.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/nginx-util/src/nginx-util.cpp b/net/nginx-util/src/nginx-util.cpp
index 02aa7013a..b0a724da6 100644
--- a/net/nginx-util/src/nginx-util.cpp
+++ b/net/nginx-util/src/nginx-util.cpp
@@ -1,3 +1,5 @@
+#include <iostream>
+
#include "nginx-util.hpp"
#ifndef NO_SSL
@@ -121,7 +123,7 @@ void get_env()
auto main(int argc, char * argv[]) -> int
{
// TODO(pst): use std::span when available:
- auto args = std::basic_string_view{argv, static_cast<size_t>(argc)};
+ auto args = std::basic_string_view<char *>{argv, static_cast<size_t>(argc)};
auto cmds = std::array{
std::array<std::string_view, 2>{"init_lan", ""},