From 00cf5a8d862c2281f04afd56b1a84012470900d7 Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Sat, 7 Jun 2014 11:16:08 +0000 Subject: Micro Python is a lean and fast implementation of the Python 3 programming language that is optimised to run on a microcontroller. WWW: http://www.micropython.org --- lang/micropython/files/patch-modtime.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lang/micropython/files/patch-modtime.c (limited to 'lang/micropython/files/patch-modtime.c') diff --git a/lang/micropython/files/patch-modtime.c b/lang/micropython/files/patch-modtime.c new file mode 100644 index 000000000000..0a8fd1312463 --- /dev/null +++ b/lang/micropython/files/patch-modtime.c @@ -0,0 +1,11 @@ +--- modtime.c.orig 2014-06-05 20:07:38.000000000 +0200 ++++ modtime.c 2014-06-06 07:58:58.000000000 +0200 +@@ -59,6 +59,8 @@ + #define CLOCK_DIV 1000.0 + #elif defined(MP_CLOCKS_PER_SEC) && (MP_CLOCKS_PER_SEC == 1000) // WIN32 + #define CLOCK_DIV 1.0 ++#elif defined(__FreeBSD__) && (MP_CLOCKS_PER_SEC == 128) ++#define CLOCK_DIV (1.0 / 128.0) + #else + #error Unsupported clock() implementation + #endif -- cgit v1.2.3