We don't support any OS where these don't exist.
dnl * after -lsocket and -lnsl tests, inet_aton() may be in them
AC_CHECK_FUNCS(fcntl flock lockf inet_aton sigaction getpagesize madvise \
- strcasecmp stricmp vsyslog writev pread uname \
+ vsyslog writev pread uname \
setrlimit setproctitle seteuid setreuid setegid setresgid \
getmntinfo setpriority quotactl getmntent kqueue kevent \
backtrace_symbols walkcontext dirfd clearenv \
# define INADDR_NONE INADDR_BROADCAST
#endif
-#if !defined (HAVE_STRCASECMP) && !defined (HAVE_STRICMP)
-int i_my_strcasecmp(const char *s1, const char *s2)
-{
- while (*s1 != '\0' && i_toupper(*s1) == i_toupper(*s2)) {
- s1++; s2++;
- }
-
- return i_toupper(*s1) - i_toupper(*s2);
-}
-
-int i_my_strncasecmp(const char *s1, const char *s2, size_t max_chars)
-{
- while (max_chars > 1 && *s1 != '\0' &&
- i_toupper(*s1) == i_toupper(*s2)) {
- s1++; s2++; max_chars--;
- }
-
- return i_toupper(*s1) - i_toupper(*s2);
-}
-#endif
-
#ifndef HAVE_INET_ATON
int i_my_inet_aton(const char *cp, struct in_addr *inp)
{
((st1)->st_ctime == (st2)->st_ctime && \
ST_NTIMES_EQUAL(ST_CTIME_NSEC(*(st1)), ST_CTIME_NSEC(*(st2))))
-/* strcasecmp(), strncasecmp() */
-#ifndef HAVE_STRCASECMP
-# ifdef HAVE_STRICMP
-# define strcasecmp stricmp
-# define strncasecmp strnicmp
-# else
-# define strcasecmp i_my_strcasecmp
-# define strncasecmp i_my_strncasecmp
-int i_my_strcasecmp(const char *s1, const char *s2);
-int i_my_strncasecmp(const char *s1, const char *s2, size_t max_chars);
-# endif
-#endif
-
#ifndef HAVE_INET_ATON
# include <sys/socket.h>
# include <netinet/in.h>