From 8f3646cb81a83e049d0b3da48ee00004b4fd11d6 Mon Sep 17 00:00:00 2001 From: Bastian Buck <59334447+bstnbuck@users.noreply.github.com> Date: Thu, 22 Jul 2021 09:44:00 +0200 Subject: [PATCH] os: fix debugger_present for solaris (#10902) -solaris has no `sys/ptrace.h`, instead `ptrace` is included in `sys/types.h` and `unistd.h` --- vlib/os/os_nix.c.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/os/os_nix.c.v b/vlib/os/os_nix.c.v index 1a2a26c866..b30eab640f 100644 --- a/vlib/os/os_nix.c.v +++ b/vlib/os/os_nix.c.v @@ -7,8 +7,10 @@ import strings #include #include #include -#include #include +$if !solaris { + #include +} pub const ( path_separator = '/'