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

Fix build error if strnstr is missing

Support for strnstr was added in
http://git.videolan.org/?p=vlc.git;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:
https://trac.videolan.org/vlc/ticket/16767Signed-off-by: default avatarBernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 86502818
...@@ -74,7 +74,8 @@ typedef struct ...@@ -74,7 +74,8 @@ typedef struct
#if !defined (HAVE_POSIX_MEMALIGN) || \ #if !defined (HAVE_POSIX_MEMALIGN) || \
!defined (HAVE_STRLCPY) || \ !defined (HAVE_STRLCPY) || \
!defined (HAVE_STRNDUP) || \ !defined (HAVE_STRNDUP) || \
!defined (HAVE_STRNLEN) !defined (HAVE_STRNLEN) || \
!defined (HAVE_STRNSTR)
# include <stddef.h> /* size_t */ # include <stddef.h> /* size_t */
#endif #endif
......
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