summaryrefslogtreecommitdiff
path: root/com32/lua/src/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lua/src/lstate.c')
-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