summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/natmod/btree/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/natmod/btree/Makefile b/examples/natmod/btree/Makefile
index 6273ccc65..bcaa7a93d 100644
--- a/examples/natmod/btree/Makefile
+++ b/examples/natmod/btree/Makefile
@@ -36,6 +36,9 @@ ifeq ($(ARCH),xtensa)
MPY_EXTERN_SYM_FILE=$(MPY_DIR)/ports/esp8266/boards/eagle.rom.addr.v6.ld
endif
+# Use our own errno implementation if Picolibc is used
+CFLAGS += -D__PICOLIBC_ERRNO_FUNCTION=__errno
+
include $(MPY_DIR)/py/dynruntime.mk
# btree needs gnu99 defined