commit | b7a9498a8eb29e2d9f9279b64d66683a222aebc7 | [log] [tgz] |
---|---|---|
author | Pekka Paalanen <ppaalanen@gmail.com> | Tue Jun 12 17:42:25 2012 +0300 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Tue Jun 12 12:29:13 2012 -0400 |
tree | 1944899f41802f9d3311f5cff7ef6ec38174077c | |
parent | b79b63531222352b91137b978fe552e0e8091cdf [diff] [blame] |
compositor: add fallback strchrnul() Android does not have this function. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/shared/os-compatibility.c b/shared/os-compatibility.c index 66934a8..21d4d02 100644 --- a/shared/os-compatibility.c +++ b/shared/os-compatibility.c
@@ -168,3 +168,13 @@ return fd; } + +#ifndef HAVE_STRCHRNUL +char * +strchrnul(const char *s, int c) +{ + while (*s && *s != c) + s++; + return (char *)s; +} +#endif