diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-27 18:22:45 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-27 20:20:23 +0200 |
commit | b7be416f55eda143b0e8f4a8ded8649c92e77d4e (patch) | |
tree | 0b9ebd4a9e63e85c0dd3741c40e01bec36316f82 /src/test/test-capability.c | |
parent | meson: add "develop mode" config switch (diff) | |
download | systemd-b7be416f55eda143b0e8f4a8ded8649c92e77d4e.tar.xz systemd-b7be416f55eda143b0e8f4a8ded8649c92e77d4e.zip |
basic/missing_capability: clean up our defines and check that our fallback is up-to-date
There is little point in #defining and #undefining CAP_LAST_CAP multiple times.
The check is only done in developer mode. After all, it's not an error to
compile on a newer kernel, and we shouldn't even warn in that case.
Diffstat (limited to 'src/test/test-capability.c')
-rw-r--r-- | src/test/test-capability.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-capability.c b/src/test/test-capability.c index 249323f8cf..2d47c77f46 100644 --- a/src/test/test-capability.c +++ b/src/test/test-capability.c @@ -7,6 +7,8 @@ #include <sys/wait.h> #include <unistd.h> +#define TEST_CAPABILITY_C + #include "alloc-util.h" #include "capability-util.h" #include "errno-util.h" |