summaryrefslogtreecommitdiffstats
path: root/rfc822
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822')
-rw-r--r--rfc822/configure.ac4
-rw-r--r--rfc822/imapsubj.c15
2 files changed, 5 insertions, 14 deletions
diff --git a/rfc822/configure.ac b/rfc822/configure.ac
index 03fdb4b..82dbdfa 100644
--- a/rfc822/configure.ac
+++ b/rfc822/configure.ac
@@ -29,7 +29,7 @@ dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(locale.h)
+AC_CHECK_HEADERS(locale.h strings.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -58,7 +58,7 @@ fi
AC_MSG_CHECKING([if Libidn should be used])
AC_MSG_RESULT($libidn)
-AC_CHECK_FUNCS(strcasecmp strncasecmp setlocale)
+AC_CHECK_FUNCS(setlocale)
AC_CACHE_CHECK([how to calculate alternate timezone],librfc822_cv_SYS_TIMEZONE,
diff --git a/rfc822/imapsubj.c b/rfc822/imapsubj.c
index 2f6adfd..97da19c 100644
--- a/rfc822/imapsubj.c
+++ b/rfc822/imapsubj.c
@@ -10,19 +10,10 @@
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
-#include "rfc822.h"
-
-#if HAVE_STRCASECMP
-
-#else
-#define strcasecmp stricmp
-#endif
-
-#if HAVE_STRNCASECMP
-
-#else
-#define strncasecmp strnicmp
+#if HAVE_STRINGS_H
+#include <strings.h>
#endif
+#include "rfc822.h"
/* Skip over blobs */