aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhii (Sergey) Kozlov <skozlov@FreeBSD.org>2022-02-08 21:23:28 +0000
committerSerhii (Sergey) Kozlov <skozlov@FreeBSD.org>2022-02-08 21:24:20 +0000
commit63b098abd07ab92f277946807794e9edb5284699 (patch)
tree5db6abbb2b86ca71340e8aec282cb1db4dbd1549
parent4066838a867e8e9ebd15914d590afb57cf2f0b55 (diff)
downloadports-63b098abd07ab92f277946807794e9edb5284699.tar.gz
ports-63b098abd07ab92f277946807794e9edb5284699.zip
ftp/sftpgo: Fix build on i386
-rw-r--r--ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go b/ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go
new file mode 100644
index 000000000000..6011ca54e942
--- /dev/null
+++ b/ftp/sftpgo/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go
@@ -0,0 +1,12 @@
+--- vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go.orig 2022-02-06 14:12:45 UTC
++++ vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go
+@@ -115,7 +115,8 @@ func (p *Process) createTimeWithContext(ctx context.Co
+ if err != nil {
+ return 0, err
+ }
+- return k.Start.Sec*1000 + k.Start.Usec/1000, nil
++ // Pull request: https://github.com/shirou/gopsutil/pull/1246
++ return int64(k.Start.Sec)*1000 + int64(k.Start.Usec)/1000, nil
+ }
+
+ func (p *Process) StatusWithContext(ctx context.Context) ([]string, error) {