Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140059460
D14446.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
D14446.diff
View Options
Index: head/stand/liblua/lutils.c
===================================================================
--- head/stand/liblua/lutils.c
+++ head/stand/liblua/lutils.c
@@ -28,6 +28,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/param.h>
+
#include "lua.h"
#include "lauxlib.h"
#include "lstd.h"
@@ -263,6 +265,11 @@
luaopen_loader(lua_State *L)
{
luaL_newlib(L, loaderlib);
+ /* Add loader.machine and loader.machine_arch properties */
+ lua_pushstring(L, MACHINE);
+ lua_setfield(L, -2, "machine");
+ lua_pushstring(L, MACHINE_ARCH);
+ lua_setfield(L, -2, "machine_arch");
return 1;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 20, 4:43 PM (6 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27099007
Default Alt Text
D14446.diff (617 B)
Attached To
Mode
D14446: liblua: Add loader.machine and loader.machine_arch properties
Attached
Detach File
Event Timeline
Log In to Comment