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
parent
742f6f849c
commit
8f3646cb81
|
@ -7,8 +7,10 @@ import strings
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ptrace.h>
|
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
|
$if !solaris {
|
||||||
|
#include <sys/ptrace.h>
|
||||||
|
}
|
||||||
|
|
||||||
pub const (
|
pub const (
|
||||||
path_separator = '/'
|
path_separator = '/'
|
||||||
|
|
Loading…
Reference in New Issue