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 \
memeset \
memset \
munmap \
sched_getcpu \
strerror \
strtoul \
sched_getcpu \
strerror \
strtoul \
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Reentrant random function from POSIX.1c.
* Copyright (C) 1996, 1999 Free Software Foundation, Inc.
/*
* Reentrant random function from POSIX.1c.
* Copyright (C) 1996, 1999 Free Software Foundation, Inc.
-#endif /* __ANDROID__ */
+#endif /* HAVE_RAND_R */
#endif /* _COMPAT_RAND_H */
#endif /* _COMPAT_RAND_H */