2025f0f602
This is a pretty specific hack, so let's just define it close to the one place where it is used.
18 lines
530 B
C
18 lines
530 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
/***
|
|
Copyright © 2013 Holger Hans Peter Freyther
|
|
***/
|
|
|
|
#include "sd-daemon.h"
|
|
|
|
#define TEST_REQ_RUNNING_SYSTEMD(x) \
|
|
if (sd_booted() > 0) { \
|
|
x; \
|
|
} else { \
|
|
printf("systemd not booted skipping '%s'\n", #x); \
|
|
}
|
|
|
|
int enter_cgroup_subroot(void);
|