]> granicus.if.org Git - neomutt/commitdiff
Use bundled wcscasecmp if an implementation is not found in libc
authorPietro Cerutti <gahr@gahr.ch>
Fri, 20 Oct 2017 08:38:41 +0000 (08:38 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 20 Oct 2017 13:25:44 +0000 (14:25 +0100)
Issue #879

Makefile.autosetup
auto.def

index 35000838a7db9ba1dfa0bf8167522abbee504ed9..9fc445ecea0232e8261bd278e5fc8f34e83068cc 100644 (file)
@@ -67,6 +67,10 @@ NEOMUTTOBJS= account.o addrbook.o alias.o attach.o bcache.o body.o \
                smtp.o sort.o state.o status.o system.o thread.o url.o \
                version.o
 
+@if HAVE_WCSCASECMP
+@else
+NEOMUTTOBJS+=  wcscasecmp.o
+@endif
 @if HAVE_RESIZETERM
 NEOMUTTOBJS+=  resize.o
 @endif
index 6858211cb56bea76325c3f8f54ddf17ffda8c62c..39db97c9565dd10ef39ecadfb228811c15368a20 100644 (file)
--- a/auto.def
+++ b/auto.def
@@ -258,7 +258,8 @@ if {1} {
     iswblank \
     mkdtemp \
     strsep \
-    vasprintf
+    vasprintf \
+    wcscasecmp
 
   cc-check-function-in-lib gethostent nsl
   cc-check-function-in-lib setsockopt socket