The rand_r() function exists in newer Android versions,
detect it instead of relying on the __ANDROID__ define.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
memeset \
memset \
munmap \
+ rand_r \
sched_getcpu \
strerror \
strtoul \
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifdef __ANDROID__
+#ifndef HAVE_RAND_R
/*
* Reentrant random function from POSIX.1c.
* Copyright (C) 1996, 1999 Free Software Foundation, Inc.
return result;
}
-#endif /* __ANDROID__ */
+#endif /* HAVE_RAND_R */
#endif /* _COMPAT_RAND_H */