summaryrefslogtreecommitdiff
path: root/mysys/my_getsystime.c
diff options
context:
space:
mode:
authorgreg@mysql.com <>2004-03-04 22:59:04 -0100
committergreg@mysql.com <>2004-03-04 22:59:04 -0100
commit54c1debc1cd7b71a97d6ec465c57ff239727e132 (patch)
tree75b08dadf033e3d71a2e2ef2598b3b1413d231cf /mysys/my_getsystime.c
parent46c03de1a958fcf294dfc77a2336ab51bc878536 (diff)
downloadmariadb-git-54c1debc1cd7b71a97d6ec465c57ff239727e132.tar.gz
Enhanced my_getsystime for NetWare.
Diffstat (limited to 'mysys/my_getsystime.c')
-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;