1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix debugger_present for solaris (#10902)

-solaris has no `sys/ptrace.h`, instead `ptrace` is included in  `sys/types.h` and `unistd.h`
This commit is contained in:
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

View File

@ -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 = '/'