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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-08-27 20:20:23 +02:00
parent 839bdf2505
commit b7be416f55
2 changed files with 20 additions and 15 deletions
+2
View File
@@ -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"