diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/bus-errors.c | 2 | ||||
-rw-r--r-- | src/shared/bus-errors.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/bus-errors.c b/src/shared/bus-errors.c index 31d00bac39..b6f65d205b 100644 --- a/src/shared/bus-errors.c +++ b/src/shared/bus-errors.c @@ -24,7 +24,7 @@ #include "sd-bus.h" #include "bus-errors.h" -SD_BUS_ERROR_MAPPING = { +SD_BUS_ERROR_MAPPING(systemd_shared) = { {BUS_ERROR_NO_SUCH_UNIT, ENOENT}, {BUS_ERROR_NO_UNIT_FOR_PID, ESRCH}, {BUS_ERROR_UNIT_EXISTS, EEXIST}, diff --git a/src/shared/bus-errors.h b/src/shared/bus-errors.h index 504ab1f796..1bf19c3f39 100644 --- a/src/shared/bus-errors.h +++ b/src/shared/bus-errors.h @@ -21,6 +21,8 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ +#include "sd-bus.h" + #define BUS_ERROR_NO_SUCH_UNIT "org.freedesktop.systemd1.NoSuchUnit" #define BUS_ERROR_NO_UNIT_FOR_PID "org.freedesktop.systemd1.NoUnitForPID" #define BUS_ERROR_UNIT_EXISTS "org.freedesktop.systemd1.UnitExists" @@ -67,3 +69,5 @@ #define BUS_ERROR_CNAME_LOOP "org.freedesktop.resolve1.CNameLoop" #define BUS_ERROR_ABORTED "org.freedesktop.resolve1.Aborted" #define _BUS_ERROR_DNS "org.freedesktop.resolve1.DnsError." + +SD_BUS_ERROR_MAPPING_USE(systemd_shared); |