summaryrefslogtreecommitdiff
path: root/lib/os_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/os_internal.h')
-rw-r--r--lib/os_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/os_internal.h b/lib/os_internal.h
index 5f61fb84d..f52f56847 100644
--- a/lib/os_internal.h
+++ b/lib/os_internal.h
@@ -268,4 +268,13 @@ void xine_private_rewinddir(DIR *);
#endif
+/* replacement of memmem */
+#ifndef HAVE_MEMMEM
+#define HAVE_MEMMEM
+#define memmem(H, HL, N, NL) \
+ xine_private_memmem((H), (HL), (N), (NL))
+void *xine_internal_memmem (const void *haystack, size_t haystack_len,
+ const void *needle, size_t needle_len);
+#endif
+
#endif