os: fix debugger_present for solaris (#10902)

-solaris has no `sys/ptrace.h`, instead `ptrace` is included in  `sys/types.h` and `unistd.h`
pull/10890/head
Bastian Buck 2021-07-22 09:44:00 +02:00 committed by GitHub
parent 742f6f849c
commit 8f3646cb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -7,8 +7,10 @@ import strings
#include <fcntl.h>
#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/ptrace.h>
#include <utime.h>
$if !solaris {
#include <sys/ptrace.h>
}
pub const (
path_separator = '/'