File: add-riscv64-utsname.patch

package info (click to toggle)
golang-github-iovisor-gobpf 0.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 732 kB
  • sloc: ansic: 2,716; makefile: 17; sh: 7
file content (25 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Forwarded: https://github.com/iovisor/gobpf/pull/324

commit a8772aa7a6c088c9845406d9566e59630f7f4c92
Author: Ast-x64 <Ast-x64@protonmail.com>
Date:   Mon Feb 27 18:30:03 2023 +0900

    elf: Add utsname support for riscv64

    According to https://go.dev/src/syscall/ztypes_linux_riscv64.go#L573 we
    should use uint8 on riscv64.

---
 elf/utsname_uint8.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/elf/utsname_uint8.go
===================================================================
--- a/elf/utsname_uint8.go
+++ b/elf/utsname_uint8.go
@@ -1,4 +1,4 @@
-// +build linux,arm linux,ppc64 linux,ppc64le s390x
+// +build linux,arm linux,ppc64 linux,ppc64le linux,riscv64 s390x
 
 package elf