From e3be059d4da38aa36f1aee1d56f8ceb943d92f1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 22:34:44 +0200 Subject: Adding upstream version 2:4.0.4. Signed-off-by: Daniel Baumann --- local/rpmatch.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 local/rpmatch.h (limited to 'local/rpmatch.h') diff --git a/local/rpmatch.h b/local/rpmatch.h new file mode 100644 index 0000000..2541aa3 --- /dev/null +++ b/local/rpmatch.h @@ -0,0 +1,9 @@ +#ifndef PROCPS_NG_RPMATCH_H +#define PROCPS_NG_RPMATCH_H + +#ifndef HAVE_RPMATCH +#define rpmatch(r) \ + (*r == 'y' || *r == 'Y' ? 1 : *r == 'n' || *r == 'N' ? 0 : -1) +#endif + +#endif /* PROCPS_NG_RPMATCH_H */ -- cgit v1.2.3