6332N/Amemrchr compatibility stub taken from sudo.
6332N/A21158555 - solaris should provide memrchr for bsd / linux compatibility
6332N/A AC_CHECK_FUNCS(timegm, AC_DEFINE(HAVE_TIMEGM,1,[Have timegm]))
6332N/A+AC_CHECK_FUNCS(memrchr, AC_DEFINE(HAVE_MEMRCHR,1,[Have memrchr]))
6332N/A # --------------------------------------------------------------------
6332N/A+ * Copyright (c) 2007, 2010-2011, 2013
6332N/A+ * Todd C. Miller <Todd.Miller@courtesan.com>
6332N/A+ * Permission to use, copy, modify, and distribute this software for any
6332N/A+ * purpose with or without fee is hereby granted, provided that the above
6332N/A+ * copyright notice and this permission notice appear in all copies.
6332N/A+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
6332N/A+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
6332N/A+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
6332N/A+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
6332N/A+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
6332N/A+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
6332N/A+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6332N/A+ * Find the last occurrence of 'c' in the buffer 's' of size 'n'.
6332N/A+memrchr(const void *s, int c, size_t n)
6332N/A+ cp = (unsigned char *)s + n;
6332N/A+ if (*(--cp) == (unsigned char)c)
6332N/A+ * Copyright (c) 2007, 2010-2011, 2013
6332N/A+ * Todd C. Miller <Todd.Miller@courtesan.com>
6332N/A+ * Copyright (c) 2015, Oracle
and/or its affiliates. All rights reserved.
6332N/A+ * Permission to use, copy, modify, and distribute this software for any
6332N/A+ * purpose with or without fee is hereby granted, provided that the above
6332N/A+ * copyright notice and this permission notice appear in all copies.
6332N/A+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
6332N/A+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
6332N/A+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
6332N/A+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
6332N/A+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
6332N/A+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
6332N/A+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6332N/A+void * memrchr (const void *s, int c, size_t n);
6332N/A+#endif /* EGG_MEMRCHR_H_ */