app: Enable building on OpenBSD

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>
This commit is contained in:
Aaron Bieber
2020-01-23 13:54:26 -07:00
committed by Elias Naur
parent 18cddc0300
commit fdaf891732
8 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
// +build linux windows freebsd
// +build linux windows freebsd openbsd
package egl
+3 -1
View File
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
// +build linux freebsd
// +build linux freebsd openbsd
package egl
@@ -8,6 +8,8 @@ package egl
#cgo LDFLAGS: -lEGL
#cgo freebsd CFLAGS: -I/usr/local/include
#cgo freebsd LDFLAGS: -L/usr/local/lib
#cgo openbsd CFLAGS: -I/usr/X11R6/include
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib
#include <EGL/egl.h>
#include <EGL/eglext.h>