diff options
Diffstat (limited to 'libblkid/rpmatch.h')
-rw-r--r-- | libblkid/rpmatch.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libblkid/rpmatch.h b/libblkid/rpmatch.h new file mode 100644 index 000000000..d62634bd8 --- /dev/null +++ b/libblkid/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 */ |