Module Name:    src
Committed By:   lneto
Date:           Mon Dec  2 23:06:35 UTC 2013

Modified Files:
        src/external/mit/lua/dist/src: lstrlib.c

Log Message:
fixed lua(4) build (added _KERNEL guard into lstrlib.c to avoid double usage)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/external/mit/lua/dist/src/lstrlib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/lua/dist/src/lstrlib.c
diff -u src/external/mit/lua/dist/src/lstrlib.c:1.1.1.2 src/external/mit/lua/dist/src/lstrlib.c:1.2
--- src/external/mit/lua/dist/src/lstrlib.c:1.1.1.2	Thu Mar 15 00:08:12 2012
+++ src/external/mit/lua/dist/src/lstrlib.c	Mon Dec  2 23:06:35 2013
@@ -1,7 +1,7 @@
-/*	$NetBSD: lstrlib.c,v 1.1.1.2 2012/03/15 00:08:12 alnsn Exp $	*/
+/*	$NetBSD: lstrlib.c,v 1.2 2013/12/02 23:06:35 lneto Exp $	*/
 
 /*
-** $Id: lstrlib.c,v 1.1.1.2 2012/03/15 00:08:12 alnsn Exp $
+** $Id: lstrlib.c,v 1.2 2013/12/02 23:06:35 lneto Exp $
 ** Standard library for string operations and pattern-matching
 ** See Copyright Notice in lua.h
 */
@@ -789,11 +789,13 @@ static int str_format (lua_State *L) {
           sprintf(buff, form, (unsigned LUA_INTFRM_T)luaL_checknumber(L, arg));
           break;
         }
+#ifndef _KERNEL
         case 'e':  case 'E': case 'f':
         case 'g': case 'G': {
           sprintf(buff, form, (double)luaL_checknumber(L, arg));
           break;
         }
+#endif
         case 'q': {
           addquoted(L, &b, arg);
           continue;  /* skip the 'addsize' at the end */

Reply via email to