diff --git a/LibC/stdio.h b/LibC/stdio.h index 54f64173d8..8da83d9cfb 100644 --- a/LibC/stdio.h +++ b/LibC/stdio.h @@ -22,6 +22,8 @@ __BEGIN_DECLS #define _IOLBF 1 #define _IONBF 2 +#define L_tmpnam 256 + struct __STDIO_FILE { int fd; int eof; diff --git a/LibM/math.cpp b/LibM/math.cpp index 3637da62ab..5cb3f6fe2a 100644 --- a/LibM/math.cpp +++ b/LibM/math.cpp @@ -95,5 +95,30 @@ double fabs(double value) { return value < 0 ? -value : value; } +double log2(double ) +{ + ASSERT_NOT_REACHED(); +} + +float log2f(float ){ + ASSERT_NOT_REACHED(); } + +long double log2l(long double ){ + ASSERT_NOT_REACHED(); +} + +double frexp(double , int *){ + ASSERT_NOT_REACHED(); +} + +float frexpf(float , int *){ + ASSERT_NOT_REACHED(); +} + +long double frexpl(long double , int *){ + ASSERT_NOT_REACHED(); + +} +} diff --git a/LibM/math.h b/LibM/math.h index 70f95efe34..adb282fa73 100644 --- a/LibM/math.h +++ b/LibM/math.h @@ -53,4 +53,12 @@ float ldexpf(float, int exp); double pow(double x, double y); +double log2(double); +float log2f(float); +long double log2l(long double); +double frexp(double, int *); +float frexpf(float, int *); +long double frexpl(long double, int *); + + __END_DECLS diff --git a/Ports/lua/lua.sh b/Ports/lua/lua.sh index 5fb21a7158..0656fa6534 100755 --- a/Ports/lua/lua.sh +++ b/Ports/lua/lua.sh @@ -1,11 +1,16 @@ #!/bin/sh PORT_DIR=lua MAKEOPTS='generic' + +INSTALLOPTS="INSTALL_TOP=$SERENITY_ROOT/Root/" + function fetch() { run_fetch_web "http://www.lua.org/ftp/lua-5.3.5.tar.gz" run_patch lua.patch -p1 } - +function configure() { + run_export_env CC i686-pc-serenity-gcc +} function run_make() { run_command make $MAKEOPTS "$@" }