summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getsystime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/my_getsystime.c b/mysys/my_getsystime.c
index 33c2163120f..bdaa232d560 100644
--- a/mysys/my_getsystime.c
+++ b/mysys/my_getsystime.c
@@ -18,6 +18,10 @@
/* thus to get the current time we should use the system function
with the highest possible resolution */
+#ifdef __NETWARE__
+#include <nks/time.h>
+#endif
+
#include "mysys_priv.h"
ulonglong my_getsystime()
{
@@ -31,6 +35,10 @@ ulonglong my_getsystime()
struct _timeb tb;
_ftime(&tb);
return (ulonglong)tb.time*10000000+(ulonglong)tb.millitm*10000;
+#elif defined(__NETWARE__)
+ NXTime_t tm;
+ NXGetTime(NX_SINCE_1970, NX_NSECONDS, &tm);
+ return (ulonglong)tm/100;
#else
/* TODO: check for other possibilities for hi-res timestamping */
struct timeval tv;