aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index f2e763a..4ec9b9a 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -215,6 +215,12 @@ extern int ffs(int);
extern int mkstemps(char *, int);
#endif
+/* Make memrchr available on systems that do not have it. */
+#if !defined (__GNU_LIBRARY__ ) && !defined (__linux__) && \
+ !defined (HAVE_MEMRCHR)
+extern void *memrchr(const void *, int, size_t);
+#endif
+
/* Get the working directory. The result is cached, so don't call
chdir() between calls to getpwd(). */