[syslinux:master] lua: the COM32 API does not support time()

syslinux-bot for Ferenc Wágner wferi at niif.hu
Sun Mar 2 13:48:18 PST 2014


Commit-ID:  7de0fe31984d3ce56db6041e0cdf358936c1f583
Gitweb:     http://www.syslinux.org/commit/7de0fe31984d3ce56db6041e0cdf358936c1f583
Author:     Ferenc Wágner <wferi at niif.hu>
AuthorDate: Fri, 11 Oct 2013 14:34:47 +0200
Committer:  Ferenc Wágner <wferi at niif.hu>
CommitDate: Sat, 1 Mar 2014 17:40:34 +0100

lua: the COM32 API does not support time()


---
 com32/lua/src/lstate.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/com32/lua/src/lstate.c b/com32/lua/src/lstate.c
index 207a106..706f5dd 100644
--- a/com32/lua/src/lstate.c
+++ b/com32/lua/src/lstate.c
@@ -47,8 +47,13 @@
 ** created; the seed is used to randomize hashes.
 */
 #if !defined(luai_makeseed)
+#ifndef SYSLINUX
 #include <time.h>
 #define luai_makeseed()		cast(unsigned int, time(NULL))
+#else
+#include <sys/times.h>
+#define luai_makeseed()		cast(unsigned int, times(NULL))
+#endif /* SYSLINUX */
 #endif
 
 


More information about the Syslinux-commits mailing list