Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/sljit Fix compilation.
details: https://anonhg.NetBSD.org/src/rev/40cff2326df5
branches: trunk
changeset: 782050:40cff2326df5
user: alnsn <alnsn%NetBSD.org@localhost>
date: Sat Oct 13 19:38:24 2012 +0000
description:
Fix compilation.
diffstat:
sys/external/bsd/sljit/conf/files.sljit | 7 +++++++
sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h | 1 +
sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c | 4 ++--
3 files changed, 10 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r 83db69768597 -r 40cff2326df5 sys/external/bsd/sljit/conf/files.sljit
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/bsd/sljit/conf/files.sljit Sat Oct 13 19:38:24 2012 +0000
@@ -0,0 +1,7 @@
+# $NetBSD: files.sljit,v 1.1 2012/10/13 19:38:24 alnsn Exp $
+
+defflag SLJIT
+
+makeoptions sljit CPPFLAGS+="-I$S/external/bsd/sljit/dist/sljit_src"
+
+file external/bsd/sljit/dist/sljit_src/sljitLir.c sljit
diff -r 83db69768597 -r 40cff2326df5 sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h
--- a/sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h Sat Oct 13 19:25:22 2012 +0000
+++ b/sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h Sat Oct 13 19:38:24 2012 +0000
@@ -87,6 +87,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
#include <sys/malloc.h>
+#include <sys/param.h>
#endif
/* --------------------------------------------------------------------- */
diff -r 83db69768597 -r 40cff2326df5 sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c
--- a/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c Sat Oct 13 19:25:22 2012 +0000
+++ b/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c Sat Oct 13 19:38:24 2012 +0000
@@ -24,7 +24,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-SLJIT_API_FUNC_ATTRIBUTE SLJIT_CONST char* sljit_get_platform_name()
+SLJIT_API_FUNC_ATTRIBUTE SLJIT_CONST char* sljit_get_platform_name(void)
{
return "x86" SLJIT_CPUINFO;
}
@@ -2021,7 +2021,7 @@
static sljit_i sse2_data[3 + 4 + 4];
static sljit_i *sse2_buffer;
-static void init_compiler()
+static void init_compiler(void)
{
sse2_buffer = (sljit_i*)(((sljit_uw)sse2_data + 15) & ~0xf);
sse2_buffer[0] = 0;
Home |
Main Index |
Thread Index |
Old Index