From 2faa05d968965989c9d7c06d08588eb1f051a2ae Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Sun, 22 Dec 2024 21:10:04 +0100 Subject: [PATCH] Provide illumos support (#12) Add illumos support back again to shellcgo. --- shellcgo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shellcgo.go b/shellcgo.go index f394ea9..c80e824 100644 --- a/shellcgo.go +++ b/shellcgo.go @@ -1,7 +1,8 @@ -//go:build (cgo && aix) || (cgo && android) || (cgo && darwin) || (cgo && dragonfly) || (cgo && freebsd) || (cgo && linux) || (cgo && netbsd) || (cgo && openbsd) +//go:build (cgo && aix) || (cgo && android) || (cgo && darwin) || (cgo && dragonfly) || (cgo && freebsd) || (cgo && linux) || (cgo && netbsd) || (cgo && openbsd) || (cgo && illumos) package shell +// #cgo illumos CFLAGS: -D_POSIX_PTHREAD_SEMANTICS=1 // #include // #include // #include