Apply patch for FreeBSD from Flavio Slivestrow.
This commit is contained in:
parent
6228f20dc1
commit
83a8b7f8e1
2 changed files with 4 additions and 0 deletions
src
|
@ -510,7 +510,9 @@ extern char* strdcat(const char* l, const char* r);
|
|||
/// strdup + strcat + strcat
|
||||
extern char* strdcat3(const char* l, const char *m, const char* r);
|
||||
/// case insensitive strstr
|
||||
#ifndef __FreeBSD__
|
||||
extern char* strcasestr(char* str, const char* substr);
|
||||
#endif
|
||||
|
||||
/*============================================================================
|
||||
== Misc
|
||||
|
|
|
@ -327,6 +327,7 @@ global char* strdcat3(const char* l, const char* m, const char* r)
|
|||
**
|
||||
** @return Pointer to first occurence of b or NULL if not found.
|
||||
*/
|
||||
#ifndef __FreeBSD__
|
||||
global char* strcasestr(char* a, const char* b)
|
||||
{
|
||||
int x=0;
|
||||
|
@ -347,6 +348,7 @@ global char* strcasestr(char* a, const char* b)
|
|||
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*============================================================================
|
||||
== MAIN
|
||||
|
|
Loading…
Add table
Reference in a new issue