diff options
Diffstat (limited to 'src/lj_vmmath.c')
-rw-r--r-- | src/lj_vmmath.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_vmmath.c b/src/lj_vmmath.c index ec3d98af..8b177207 100644 --- a/src/lj_vmmath.c +++ b/src/lj_vmmath.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #define lj_vmmath_c | 6 | #define lj_vmmath_c |
7 | #define LUA_CORE | 7 | #define LUA_CORE |
8 | 8 | ||
9 | #include <errno.h> | ||
9 | #include <math.h> | 10 | #include <math.h> |
10 | 11 | ||
11 | #include "lj_obj.h" | 12 | #include "lj_obj.h" |
@@ -108,4 +109,11 @@ double lj_vm_foldfpm(double x, int fpm) | |||
108 | } | 109 | } |
109 | #endif | 110 | #endif |
110 | 111 | ||
112 | #if LJ_HASFFI | ||
113 | int lj_vm_errno(void) | ||
114 | { | ||
115 | return errno; | ||
116 | } | ||
117 | #endif | ||
118 | |||
111 | #endif | 119 | #endif |