Skip to content

Commit

Permalink
pkg/netns: make it cross compile
Browse files Browse the repository at this point in the history
Just add stubs so podman can still compile.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Dec 5, 2023
1 parent 0c280bb commit 1e69dbf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions pkg/systemd/systemd_unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//go:build !linux

package systemd

import "errors"

func RunsOnSystemd() bool {
return false
}

func MovePauseProcessToScope(pausePidPath string) {}

func RunUnderSystemdScope(pid int, slice string, unitName string) error {
return errors.New("RunUnderSystemdScope not supported on this OS")
}

0 comments on commit 1e69dbf

Please sign in to comment.