From 83a8b7f8e13bcc7aa1c31fa9c9a84c136dca12fd Mon Sep 17 00:00:00 2001
From: johns <>
Date: Tue, 9 Apr 2002 22:35:37 +0000
Subject: [PATCH] Apply patch for FreeBSD from Flavio Slivestrow.

---
 src/include/freecraft.h     | 2 ++
 src/stratagus/stratagus.cpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/include/freecraft.h b/src/include/freecraft.h
index d55b321d2..df3e08850 100644
--- a/src/include/freecraft.h
+++ b/src/include/freecraft.h
@@ -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
diff --git a/src/stratagus/stratagus.cpp b/src/stratagus/stratagus.cpp
index a4da20e3e..ae63d42a9 100644
--- a/src/stratagus/stratagus.cpp
+++ b/src/stratagus/stratagus.cpp
@@ -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