summaryrefslogtreecommitdiff
path: root/utils/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/config.h')
-rw-r--r--utils/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/config.h b/utils/config.h
index f46423ad7..e184c6964 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -34,6 +34,21 @@
char *strndup(const char *s, size_t n);
#endif
+#define HAVE_STRCASESTR
+#if !(defined(_GNU_SOURCE) || defined(__NetBSD__) || defined(__OpenBSD__)) \
+ || defined(riscos) || defined(__APPLE__)
+#undef HAVE_STRCASESTR
+char *strcasestr(const char *haystack, const char *needle);
+#endif
+
+#define HAVE_STRCHRNUL
+/* For some reason, UnixLib defines this unconditionally.
+ * Assume we're using UnixLib if building for RISC OS. */
+#if !(defined(_GNU_SOURCE) || defined(riscos))
+#undef HAVE_STRCHRNUL
+char *strchrnul(const char *s, int c);
+#endif
+
/* This section toggles build options on and off.
* Simply undefine a symbol to turn the relevant feature off.
*