mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +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>
14 lines
259 B
Go
14 lines
259 B
Go
package dbus
|
|
|
|
import "os"
|
|
|
|
const defaultSystemBusAddress = "tcp:host=127.0.0.1,port=12434"
|
|
|
|
func getSystemBusPlatformAddress() string {
|
|
address := os.Getenv("DBUS_SYSTEM_BUS_ADDRESS")
|
|
if address != "" {
|
|
return address
|
|
}
|
|
return defaultSystemBusAddress
|
|
}
|