Fix regex.c for android.

Android's headers declare bcmp etc in strings.h, but don't the functions
don't exist in the libs.
This commit is contained in:
Bill Currie 2012-02-05 14:26:23 +09:00
parent 201532ea7e
commit 8c3db9a10d

View file

@ -50,6 +50,9 @@
`BSTRING', as far as I know, and neither of them use this code. */
#if HAVE_STRING_H || STDC_HEADERS
#include <string.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#ifndef bcmp
#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
#endif