diff options
author | Ferenc Wágner <wferi@niif.hu> | 2013-10-11 14:34:47 +0200 |
---|---|---|
committer | Ferenc Wágner <wferi@niif.hu> | 2014-03-01 17:40:34 +0100 |
commit | 7de0fe31984d3ce56db6041e0cdf358936c1f583 (patch) | |
tree | f4b1f4223a547fa1123f563372c7bd083b540c3a | |
parent | 3b4337a3b53a3bc5aec9a6efb59ab0462148e71c (diff) | |
download | syslinux-7de0fe31984d3ce56db6041e0cdf358936c1f583.tar.gz syslinux-7de0fe31984d3ce56db6041e0cdf358936c1f583.tar.xz syslinux-7de0fe31984d3ce56db6041e0cdf358936c1f583.zip |
lua: the COM32 API does not support time()
-rw-r--r-- | com32/lua/src/lstate.c | 5 |
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 |