]> granicus.if.org Git - psmisc/commitdiff
define a rpmatch for uclibc and friends
authorCraig Small <csmall@users.sourceforge.net>
Mon, 21 Mar 2005 00:12:18 +0000 (00:12 +0000)
committerCraig Small <csmall@users.sourceforge.net>
Mon, 21 Mar 2005 00:12:18 +0000 (00:12 +0000)
ChangeLog
configure.in
src/i18n.h

index 848487eb943b819922f7d865182be53fbeb9b451..7c1a0913a0a15703ca7db285e997a5f75ca799d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 Changes in 21.7
 ===============
        * Upgraded SELinux code to new api, thanks to Chris PeBenito
+       * define rpmatch for libraries that dont have it
 
 Changes in 21.6
 ===============
index 4d41ebf7e256e54ad7341c512715b70fbee6923b..28eaec5f6764cd104c7331c817b9d9d29a9b4c3c 100644 (file)
@@ -46,7 +46,7 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.14.1])
 
 dnl Checks for library functions.
-AC_CHECK_FUNCS([strdup strerror strtoul])
+AC_CHECK_FUNCS([strdup strerror strtoul rpmatch])
 
 dnl Checks for Large File System
 AC_SYS_LARGEFILE
index 736a487c6c26d07043d9b9b32ad69041f4d9b7f6..a0b44393cf06b6c4eeefa99d71c24fd2043678e5 100644 (file)
 
 #endif
 
+#ifndef HAVE_RPMATCH
+#define rpmatch(line) \
+       ( (line == NULL)? -1 : \
+         (*line == 'y' || *line == 'Y')? 1 : \
+         (*line == 'n' || *line == 'N')? 0 : \
+         -1 )
+#endif