diff options
author | greg@mysql.com <> | 2004-03-04 22:59:04 -0100 |
---|---|---|
committer | greg@mysql.com <> | 2004-03-04 22:59:04 -0100 |
commit | 54c1debc1cd7b71a97d6ec465c57ff239727e132 (patch) | |
tree | 75b08dadf033e3d71a2e2ef2598b3b1413d231cf /mysys/my_getsystime.c | |
parent | 46c03de1a958fcf294dfc77a2336ab51bc878536 (diff) | |
download | mariadb-git-54c1debc1cd7b71a97d6ec465c57ff239727e132.tar.gz |
Enhanced my_getsystime for NetWare.
Diffstat (limited to 'mysys/my_getsystime.c')
-rw-r--r-- | mysys/my_getsystime.c | 8 |
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; |