Commit 7eedad33 authored by Bernd Kuhls's avatar Bernd Kuhls Committed by Rémi Denis-Courmont
Browse files

Fix build error if strnstr is missing

Support for strnstr was added in;a=commitdiff;h=4c1238c77239cdea38a44748f2800332818b6750

but for systems lacking it, it broke the build:

  CC       strnstr.lo
In file included from ../config.h:887:0,
                 from strnstr.c:22:
../include/vlc_fixups.h:157:45: error: unknown type name ‘size_t’
 char * strnstr (const char *, const char *, size_t);

This patch fixes the problem by adding strnstr to a list of other
functions to get size_t defined.

Bug was reported to trac:

Signed-off-by: Bernd Kuhls's avatarBernd Kuhls <>
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <>
parent 86502818
......@@ -74,7 +74,8 @@ typedef struct
#if !defined (HAVE_POSIX_MEMALIGN) || \
!defined (HAVE_STRLCPY) || \
!defined (HAVE_STRNDUP) || \
!defined (HAVE_STRNLEN)
!defined (HAVE_STRNLEN) || \
!defined (HAVE_STRNSTR)
# include <stddef.h> /* size_t */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment