aboutsummaryrefslogtreecommitdiff
path: root/src/include/compat.h
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-05 09:10:56 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-05 09:10:56 +0100
commit48ae3fd97331bea275128d7ac2bdeb1d20b2f760 (patch)
tree1cf914a1366bb9884d74459c3c1812caeaafcfd2 /src/include/compat.h
parent395be9a8fb85d172dcbb06826aed8b5b29ceeac2 (diff)
downloadgnunet-48ae3fd97331bea275128d7ac2bdeb1d20b2f760.tar.gz
gnunet-48ae3fd97331bea275128d7ac2bdeb1d20b2f760.zip
make memrchr detection more general as some linux libcs such as musl or diet do not have memrchr either
Diffstat (limited to 'src/include/compat.h')
-rw-r--r--src/include/compat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/compat.h b/src/include/compat.h
index 31a9760c5..b24d09653 100644
--- a/src/include/compat.h
+++ b/src/include/compat.h
@@ -44,8 +44,9 @@ void*
44GN_memrchr_ (const void *s, 44GN_memrchr_ (const void *s,
45 int c, 45 int c,
46 size_t n); 46 size_t n);
47 47#ifndef HAVE_MEMRCHR
48#define memrchr(s,c,n) GN_memrchr_(s,c,n) 48#define memrchr(s,c,n) GN_memrchr_(s,c,n)
49#endif
49 50
50#ifdef __cplusplus 51#ifdef __cplusplus
51} 52}