From: Tobias Klauser Date: Tue, 15 Aug 2017 08:27:42 +0000 (+0200) Subject: syscall: fix definition of _AT_FDCWD on dragonfly X-Git-Tag: go1.10beta1~1552 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2351bbfd3b11122936fc5858be826d1da413bab3;p=gostls13.git syscall: fix definition of _AT_FDCWD on dragonfly CL golang.org/cl/55130 messed up the definition of _AT_FDCWD on dragonfly. This fixes the following test failure on dragonfly/amd64: --- FAIL: TestPackageMainTestImportsArchiveNotBinary (0.00s) go_test.go:192: chtimes ./testdata/src/main_test/m.go: bad file descriptor Change-Id: I4c96983769e6b02d714859dc838875c3c0f1be50 Reviewed-on: https://go-review.googlesource.com/55690 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/syscall/ztypes_dragonfly_amd64.go b/src/syscall/ztypes_dragonfly_amd64.go index 0be4a53ebe..dbbd29a63a 100644 --- a/src/syscall/ztypes_dragonfly_amd64.go +++ b/src/syscall/ztypes_dragonfly_amd64.go @@ -433,7 +433,7 @@ type BpfHdr struct { } const ( - _AT_FDCWD = -0x64 + _AT_FDCWD = 0xfffafdcd ) type Termios struct {