v22.6.0 used to compile just fine with freebsd but v22.7.0 does not giving this error
daemon/sdnotify_unix.go:31:17: undefined: unix.ClockGettime
I used git bisect to track it down to this commit 6d96518 by @corhere
Fail
$ git co main
$ GOOS=freebsd go build ./daemon
# github.com/coreos/go-systemd/v22/daemon
daemon/sdnotify_unix.go:31:17: undefined: unix.ClockGettime
$
OK
$ git co v22.6.0
$ GOOS=freebsd go build ./daemon
$