aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lua
diff options
context:
space:
mode:
authorFerenc Wágner <wferi@niif.hu>2013-10-11 14:34:47 +0200
committerFerenc Wágner <wferi@niif.hu>2014-03-01 17:40:34 +0100
commit7de0fe31984d3ce56db6041e0cdf358936c1f583 (patch)
treef4b1f4223a547fa1123f563372c7bd083b540c3a /com32/lua
parent3b4337a3b53a3bc5aec9a6efb59ab0462148e71c (diff)
downloadsyslinux-7de0fe31984d3ce56db6041e0cdf358936c1f583.tar.gz
syslinux-7de0fe31984d3ce56db6041e0cdf358936c1f583.tar.xz
syslinux-7de0fe31984d3ce56db6041e0cdf358936c1f583.zip
lua: the COM32 API does not support time()
Diffstat (limited to 'com32/lua')
-rw-r--r--com32/lua/src/lstate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/com32/lua/src/lstate.c b/com32/lua/src/lstate.c
index 207a106d..706f5dd4 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