summaryrefslogtreecommitdiff
path: root/lang/micropython/files/patch-builtinimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/micropython/files/patch-builtinimport.c')
-rw-r--r--lang/micropython/files/patch-builtinimport.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/micropython/files/patch-builtinimport.c b/lang/micropython/files/patch-builtinimport.c
new file mode 100644
index 000000000000..b88a23b5d958
--- /dev/null
+++ b/lang/micropython/files/patch-builtinimport.c
@@ -0,0 +1,14 @@
+--- ../py/builtinimport.c.orig 2014-06-05 06:09:16.000000000 +0200
++++ ../py/builtinimport.c 2014-06-05 06:09:56.000000000 +0200
+@@ -28,7 +28,11 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <assert.h>
++#ifndef __FreeBSD__
+ #include <alloca.h>
++#else
++#include <stdlib.h>
++#endif
+
+ #include "mpconfig.h"
+ #include "nlr.h"