basic: Include time-util.h in constants.h

constants.h defines a bunch of constants that use macros from
time-util.h, so add the needed include. To avoid cyclic dependencies,
we move the HAS_FEATURE_MEMORY_SANITIZER and HAS_FEATURE_ADDRESS_SANITIZER
logic to macro.h and get rid of the constants.h include there.

The rest of this commit is adding missing constants.h includes where
needed due to it being removed from macro.h.
This commit is contained in:
Daan De Meyer
2025-05-21 10:49:42 +02:00
parent 98ff8a198b
commit 8b5ce49591
6 changed files with 29 additions and 24 deletions
+1
View File
@@ -2,6 +2,7 @@
#include "bus-error.h"
#include "bus-locator.h"
#include "constants.h"
#include "systemctl.h"
#include "systemctl-daemon-reload.h"
#include "systemctl-util.h"