mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 07:57:29 +00:00
fdaf891732
Currently the golang.org/x/sys package is missing the Pipe2 call for OpenBSD. The call exists on OpenBSD, it just isn't exposed. This diff was tested buy adding the Pipe2 call and setting: go mod edit -replace=golang.org/x/sys=/pat/to/modified/sys Signed-off-by: Aaron Bieber <aaron@bolddaemon.com>
14 lines
234 B
Go
14 lines
234 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
// +build linux freebsd windows openbsd
|
|
|
|
package headless
|
|
|
|
import (
|
|
"gioui.org/app/internal/egl"
|
|
)
|
|
|
|
func newContext() (context, error) {
|
|
return egl.NewContext(egl.EGL_DEFAULT_DISPLAY)
|
|
}
|