summaryrefslogtreecommitdiffstats
path: root/local/rpmatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'local/rpmatch.h')
-rw-r--r--local/rpmatch.h9
1 files changed, 9 insertions, 0 deletions
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 */