aboutsummaryrefslogtreecommitdiff
path: root/hack/libdm_tag.sh
blob: 815b5d914ed6d9445f3285dfcaffabfb0f684b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
tmpdir="$PWD/tmp.$RANDOM"
mkdir -p "$tmpdir"
trap 'rm -fr "$tmpdir"' EXIT
${CC:-cc} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o "$tmpdir"/libdm_tag -x c - -ldevmapper > /dev/null 2> /dev/null << EOF
#include <libdevmapper.h>
int main() {
	struct dm_task *task;
	dm_task_deferred_remove(task);
	return 0;
}
EOF
if test $? -ne 0 ; then
	echo libdm_no_deferred_remove
fi