diff --git a/src/basic/unit-def.h b/src/basic/unit-def.h index 508b4c504d..c30135f4d6 100644 --- a/src/basic/unit-def.h +++ b/src/basic/unit-def.h @@ -3,6 +3,7 @@ #include +#include "errno-list.h" #include "locale-util.h" #include "macro.h" @@ -23,6 +24,7 @@ typedef enum UnitType { UNIT_SCOPE, _UNIT_TYPE_MAX, _UNIT_TYPE_INVALID = -EINVAL, + _UNIT_TYPE_ERRNO_MAX = -ERRNO_MAX, /* Ensure the whole errno range fits into this enum */ } UnitType; typedef enum UnitLoadState {