aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-03-12 13:24:07 -0800
committerH. Peter Anvin <hpa@zytor.com>2006-03-12 13:24:07 -0800
commitdcc8a3b4310ee968d7890cff9a51a98ccfb5a311 (patch)
tree05c21c6fcf04901e8327444de6dd0c936d667106 /com32/libutil/include
parentf1d29748a432327bc891cf9c87144070318d479e (diff)
downloadsyslinux-dcc8a3b4310ee968d7890cff9a51a98ccfb5a311.tar.gz
syslinux-dcc8a3b4310ee968d7890cff9a51a98ccfb5a311.tar.xz
syslinux-dcc8a3b4310ee968d7890cff9a51a98ccfb5a311.zip
Define CLK_TCK globally
Diffstat (limited to 'com32/libutil/include')
-rw-r--r--com32/libutil/include/getkey.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/com32/libutil/include/getkey.h b/com32/libutil/include/getkey.h
index d41d8c05..97a4ed84 100644
--- a/com32/libutil/include/getkey.h
+++ b/com32/libutil/include/getkey.h
@@ -36,8 +36,13 @@
#define LIBUTIL_GETKEY_H
#include <stdio.h>
+#include <unistd.h>
#include <sys/times.h>
+#ifndef CLK_TCK
+# define CLK_TCK sysconf(_SC_CLK_TCK)
+#endif
+
#define KEY_NONE (-1)
#define KEY_CTRL(x) ((x) & 0x001f)