Skip to content

Commit

Permalink
feat: add darvin specific platform code
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 29, 2024
1 parent 0188714 commit 44230c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions happy_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: Apache-2.0
//
// Copyright © 2022 The Happy Authors

//go:build darwin

package happy

func osmain(ch chan struct{}) {
if ch != nil {
<-ch
} else {
select {}
}
}

0 comments on commit 44230c3

Please sign in to comment.