diff options
Diffstat (limited to 'libblkid/include/rpmatch.h')
-rw-r--r-- | libblkid/include/rpmatch.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libblkid/include/rpmatch.h b/libblkid/include/rpmatch.h new file mode 100644 index 000000000..d62634bd8 --- /dev/null +++ b/libblkid/include/rpmatch.h @@ -0,0 +1,9 @@ +#ifndef UTIL_LINUX_RPMATCH_H +#define UTIL_LINUX_RPMATCH_H + +#ifndef HAVE_RPMATCH +#define rpmatch(r) \ + (*r == 'y' || *r == 'Y' ? 1 : *r == 'n' || *r == 'N' ? 0 : -1) +#endif + +#endif /* UTIL_LINUX_RPMATCH_H */ |