Module Name: src
Committed By: alnsn
Date: Mon Jan 21 00:07:11 UTC 2019
Modified Files:
src/sys/external/bsd/sljit/dist/sljit_src: sljitLir.c
Log Message:
Add #ifndef _KERNEL guard around userspace #includes
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c
diff -u src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c:1.6 src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c:1.7
--- src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c:1.6 Sun Jan 20 23:14:16 2019
+++ src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c Mon Jan 21 00:07:10 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: sljitLir.c,v 1.6 2019/01/20 23:14:16 alnsn Exp $ */
+/* $NetBSD: sljitLir.c,v 1.7 2019/01/21 00:07:10 alnsn Exp $ */
/*
* Stack-less Just-In-Time compiler
@@ -30,9 +30,11 @@
#if !(defined SLJIT_STD_MACROS_DEFINED && SLJIT_STD_MACROS_DEFINED)
+#ifndef _KERNEL
/* These libraries are needed for the macros below. */
#include <stdlib.h>
#include <string.h>
+#endif
#endif /* SLJIT_STD_MACROS_DEFINED */