gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37724 - libmicrohttpd


From: gnunet
Subject: [GNUnet-SVN] r37724 - libmicrohttpd
Date: Tue, 16 Aug 2016 14:17:50 +0200

Author: Karlson2k
Date: 2016-08-16 14:17:49 +0200 (Tue, 16 Aug 2016)
New Revision: 37724

Modified:
   libmicrohttpd/configure.ac
Log:
Improved monotonic clock detection in configure.ac

Modified: libmicrohttpd/configure.ac
===================================================================
--- libmicrohttpd/configure.ac  2016-08-16 12:17:46 UTC (rev 37723)
+++ libmicrohttpd/configure.ac  2016-08-16 12:17:49 UTC (rev 37724)
@@ -678,8 +678,8 @@
 AC_LINK_IFELSE(
   [AC_LANG_PROGRAM(
     [[
-      #include <mach/clock.h>
-      #include <mach/mach.h>
+#include <mach/clock.h>
+#include <mach/mach.h>
     ]],
     [[
       clock_serv_t cs;
@@ -699,7 +699,16 @@
 AC_MSG_CHECKING([[for gethrtime]])
 AC_LINK_IFELSE(
   [AC_LANG_PROGRAM(
-    [[#include <sys/time.h>]], [[hrtime_t hrt = gethrtime(); ]])
+    [[
+#ifdef HAVE_SYS_TIME_H
+/* Solaris define gethrtime() in sys/time.h */
+#include <sys/time.h>
+#endif /* HAVE_SYS_TIME_H */
+#ifdef HAVE_TIME_H
+/* HP-UX define gethrtime() in time.h */
+#include <time.h>
+#endif /* HAVE_TIME_H */
+    ]], [[hrtime_t hrt = gethrtime(); ]])
   ],
   [
     AC_DEFINE([HAVE_GETHRTIME], [1], [Define to 1 if you have `gethrtime' 
function.])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]