mirror of
https://repo.or.cz/socat.git
synced 2025-07-04 12:26:32 +00:00
Red Hat issue 1020203: configure checks fail with some compilers
This commit is contained in:
parent
cf39583b25
commit
fbb521e45e
15 changed files with 309 additions and 91 deletions
4
utils.c
4
utils.c
|
@ -14,7 +14,7 @@
|
|||
#include "utils.h"
|
||||
|
||||
|
||||
#if !HAVE_MEMRCHR
|
||||
#if !HAVE_PROTOTYPE_LIB_memrchr
|
||||
/* GNU extension, available since glibc 2.1.91 */
|
||||
void *memrchr(const void *s, int c, size_t n) {
|
||||
const unsigned char *t = ((unsigned char *)s)+n;
|
||||
|
@ -25,7 +25,7 @@ void *memrchr(const void *s, int c, size_t n) {
|
|||
return NULL;
|
||||
return (void *)t;
|
||||
}
|
||||
#endif /* !HAVE_MEMRCHR */
|
||||
#endif /* !HAVE_PROTOTYPE_LIB_memrchr */
|
||||
|
||||
void *memdup(const void *src, size_t n) {
|
||||
void *dest;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue