X-Git-Url: https://git.deb.at/?p=pkg%2Fabook.git;a=blobdiff_plain;f=misc.c;h=0f96b7a878316948c11d98a70259865d5e70ac55;hp=308c196c31f6ad3364ece033cc5905b2dd5b58d6;hb=b1c882049db5d6d7d5770134cd93e14934ace6c1;hpb=8b4f653bf99e0dc88504e0b78c728c6b9cf9b7ec diff --git a/misc.c b/misc.c index 308c196..0f96b7a 100644 --- a/misc.c +++ b/misc.c @@ -77,8 +77,9 @@ is_number(char *p) return 1; } +#ifndef HAVE_STRCASESTR char * -strcasestr(char *haystack, char *needle) +strcasestr(const char *haystack, const char *needle) { int i; int k; @@ -97,7 +98,7 @@ strcasestr(char *haystack, char *needle) return NULL; } - +#endif #ifdef HAVE_CONFIG_H # include "config.h"