Android does not have this function.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
AC_CHECK_HEADERS([execinfo.h])
-AC_CHECK_FUNCS([mkostemp])
+AC_CHECK_FUNCS([mkostemp strchrnul])
PKG_CHECK_MODULES(COMPOSITOR,
[wayland-server egl >= 7.10 glesv2 xkbcommon pixman-1])
return fd;
}
+
+#ifndef HAVE_STRCHRNUL
+char *
+strchrnul(const char *s, int c)
+{
+ while (*s && *s != c)
+ s++;
+ return (char *)s;
+}
+#endif
int
os_create_anonymous_file(off_t size);
+#ifndef HAVE_STRCHRNUL
+char *
+strchrnul(const char *s, int c);
+#endif
+
#endif /* OS_COMPATIBILITY_H */