summaryrefslogtreecommitdiffstatshomepage
path: root/examples/natmod/framebuf/framebuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/natmod/framebuf/framebuf.c')
-rw-r--r--examples/natmod/framebuf/framebuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/natmod/framebuf/framebuf.c b/examples/natmod/framebuf/framebuf.c
index 1ba702e33d..5fd7c6be3a 100644
--- a/examples/natmod/framebuf/framebuf.c
+++ b/examples/natmod/framebuf/framebuf.c
@@ -4,6 +4,9 @@
#include "py/dynruntime.h"
#if !defined(__linux__)
+void *memcpy(void *dst, const void *src, size_t n) {
+ return mp_fun_table.memmove_(dst, src, n);
+}
void *memset(void *s, int c, size_t n) {
return mp_fun_table.memset_(s, c, n);
}