mirror of
https://github.com/containers/podman.git
synced 2025-10-18 19:53:58 +08:00

This pulls in https://github.com/godbus/dbus/pull/332 allowing dbus to build without cgo on FreeBSD. This will allow freebsd targets in the cross build. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
19 lines
356 B
Go
19 lines
356 B
Go
//go:build !windows && !solaris && !darwin
|
|
// +build !windows,!solaris,!darwin
|
|
|
|
package dbus
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
const defaultSystemBusAddress = "unix:path=/var/run/dbus/system_bus_socket"
|
|
|
|
func getSystemBusPlatformAddress() string {
|
|
address := os.Getenv("DBUS_SYSTEM_BUS_ADDRESS")
|
|
if address != "" {
|
|
return address
|
|
}
|
|
return defaultSystemBusAddress
|
|
}
|