1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-09 07:13:43 -05:00

Use clock_gettime(CLOCK_MONOTONIC) as the Unix getticks(), if it's

available.

[originally from svn r9529]
This commit is contained in:
Simon Tatham
2012-05-13 15:59:27 +00:00
parent aba05b7180
commit 0395e52bb8
2 changed files with 22 additions and 6 deletions

View File

@ -119,6 +119,8 @@ AC_CHECK_LIB(X11, XOpenDisplay,
AC_DEFINE([HAVE_LIBX11],[],[Define if libX11.a is available])])
AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx])
AC_CHECK_DECLS([CLOCK_MONOTONIC], [], [], [[#include <time.h>]])
AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME],[],[Define if clock_gettime() is available])])
AC_OUTPUT