From e7eb563ee9b42866fda99062c06bf08c3930c94b Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 11 Nov 2016 20:16:43 +0100 Subject: [PATCH] Disable gethostid() in the build system Lua; it's unused and doesn't work on Haiku. --- first/lua-5.1/lposix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/first/lua-5.1/lposix.c b/first/lua-5.1/lposix.c index ebe6b9c03..4bdf9328f 100644 --- a/first/lua-5.1/lposix.c +++ b/first/lua-5.1/lposix.c @@ -702,6 +702,7 @@ static int Pgetpid(lua_State *L) /** getpid([options]) */ } +#if 0 static int Phostid(lua_State *L) /** hostid() */ { char b[32]; @@ -709,6 +710,7 @@ static int Phostid(lua_State *L) /** hostid() */ lua_pushstring(L, b); return 1; } +#endif static int Pttyname(lua_State *L) /** ttyname([fd]) */ @@ -1060,7 +1062,7 @@ static const luaL_reg R[] = {"getpasswd", Pgetpasswd}, {"getpid", Pgetpid}, {"glob", Pglob}, - {"hostid", Phostid}, + //{"hostid", Phostid}, {"kill", Pkill}, {"link", Plink}, {"mkdir", Pmkdir},