mirror of
https://github.com/ericonr/util-linux.git
synced 2024-04-21 09:12:35 -05:00
Simple replacement code with hardcoded y/n responses to allow compilation on systems without rpmatch() such as Cygwin. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
10 lines
207 B
C
10 lines
207 B
C
#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 */
|