build: fix test for subid 4
libsubid changes its ABI in version 4. Account for the different name in the configure script. Closes: https://github.com/containers/buildah/issues/4063 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
ddc4ea603a
commit
74f2c9bdf9
|
@ -7,9 +7,15 @@ mkdir -p "$tmpdir"
|
|||
trap 'rm -fr "$tmpdir"' EXIT
|
||||
cc -o "$tmpdir"/libsubid_tag -l subid -x c - > /dev/null 2> /dev/null << EOF
|
||||
#include <shadow/subid.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
const char *Prog = "test";
|
||||
FILE *shadow_logfd = NULL;
|
||||
|
||||
int main() {
|
||||
struct subid_range *ranges = NULL;
|
||||
#if SUBID_ABI_MAJOR >= 4j
|
||||
#if SUBID_ABI_MAJOR >= 4
|
||||
subid_get_uid_ranges("root", &ranges);
|
||||
#else
|
||||
get_subuid_ranges("root", &ranges);
|
||||
|
|
Loading…
Reference in New Issue