diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-09-17 00:21:25 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-09-17 00:21:25 +0200 |
commit | 4db17f291c627c885de668200ff8cce2e57c933f (patch) | |
tree | 5cda400014b64ee4c6d30473443693eb13d5773b /src/core | |
parent | 54693d9bfa855841e8097d7a6b8c8d7acc068004 (diff) |
build-sys: __secure_getenv lost dunder in libc 2.17
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/dbus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c index 75773aaa49..f05f610718 100644 --- a/src/core/dbus.c +++ b/src/core/dbus.c @@ -30,6 +30,7 @@ #include "strv.h" #include "cgroup.h" #include "mkdir.h" +#include "missing.h" #include "dbus-unit.h" #include "dbus-job.h" #include "dbus-manager.h" @@ -955,12 +956,12 @@ static DBusConnection* manager_bus_connect_private(Manager *m, DBusBusType type) switch (type) { case DBUS_BUS_SYSTEM: - address = __secure_getenv("DBUS_SYSTEM_BUS_ADDRESS"); + address = secure_getenv("DBUS_SYSTEM_BUS_ADDRESS"); if (!address || !address[0]) address = DBUS_SYSTEM_BUS_DEFAULT_ADDRESS; break; case DBUS_BUS_SESSION: - address = __secure_getenv("DBUS_SESSION_BUS_ADDRESS"); + address = secure_getenv("DBUS_SESSION_BUS_ADDRESS"); if (!address || !address[0]) address = DBUS_SESSION_BUS_DEFAULT_ADDRESS; break; @@ -1077,7 +1078,7 @@ static int bus_init_private(Manager *m) { const char *e; char *p; - e = __secure_getenv("XDG_RUNTIME_DIR"); + e = secure_getenv("XDG_RUNTIME_DIR"); if (!e) return 0; |