mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-11-28 06:10:02 +08:00
24ca97325c
Add build tags and a few other changes so that libgo builds on Solaris. Patch partially from Rainer Orth. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/386215
15 lines
395 B
Go
15 lines
395 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
|
|
|
|
package syscall
|
|
|
|
import "unsafe"
|
|
|
|
func Ioctl(fd, req uintptr, arg unsafe.Pointer) (err Errno) {
|
|
_, err = raw_ioctl_ptr(int(fd), req, arg)
|
|
return err
|
|
}
|