[syslinux] [PATCH 12/21] lua: the COM32 API does not support time()
Ferenc Wágner
wferi at niif.hu
Tue Oct 15 11:03:40 PDT 2013
---
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
--
1.7.10.4
More information about the Syslinux
mailing list