diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-02-05 09:10:56 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-02-05 09:10:56 +0100 |
commit | 48ae3fd97331bea275128d7ac2bdeb1d20b2f760 (patch) | |
tree | 1cf914a1366bb9884d74459c3c1812caeaafcfd2 /src/include/compat.h | |
parent | 395be9a8fb85d172dcbb06826aed8b5b29ceeac2 (diff) | |
download | gnunet-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.h | 3 |
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* | |||
44 | GN_memrchr_ (const void *s, | 44 | GN_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 | } |