summaryrefslogtreecommitdiff
path: root/ext/misc/linux-old-glibc-compat.c
blob: 6d793a2d060fea57a6fa154ca2e90e65edb1be28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");

#ifdef __cplusplus
extern "C" {
#endif

extern void *__wrap_memcpy(void *dest,const void *src,size_t n)
{
  return memcpy(dest,src,n);
}

#ifdef __cplusplus
}
#endif