aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNikhil Benesch <nikhil.benesch@gmail.com>2020-10-18 19:28:54 +0000
committerIan Lance Taylor <iant@golang.org>2020-10-21 22:29:04 -0700
commit439407aa2c678a96bd5b430ab9c335e65beb5751 (patch)
tree62868455b7c11523dfe8daaf93e178ecb7425167 /include
parentd5d9706f95378d40a8895616e167614b69dfe70a (diff)
downloadgcc-439407aa2c678a96bd5b430ab9c335e65beb5751.zip
gcc-439407aa2c678a96bd5b430ab9c335e65beb5751.tar.gz
gcc-439407aa2c678a96bd5b430ab9c335e65beb5751.tar.bz2
syscall: only compile ptrace varargs shim on Linux
Only compile the __go_ptrace varargs shim on Linux to avoid compilation failures on some other platforms. The C ptrace function is not entirely portable (e.g., NetBSD has `int data` instead of `void* data`), and so far Linux is the only platform that needs the varargs shim. Additionally, make the types in the ptrace and raw_ptrace function declarations match. This makes it more clear that the only difference between the two is that calls via the former are allowed to block while calls via the latter are not. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/263517
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions