summaryrefslogtreecommitdiff
path: root/m4/ax_cpu_freq.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ax_cpu_freq.m4')
-rw-r--r--m4/ax_cpu_freq.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/ax_cpu_freq.m4 b/m4/ax_cpu_freq.m4
index eeb4d5f..c731b2f 100644
--- a/m4/ax_cpu_freq.m4
+++ b/m4/ax_cpu_freq.m4
@@ -19,16 +19,18 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 8
+#serial 9
AC_DEFUN([AX_CPU_FREQ],
[AC_REQUIRE([AC_PROG_CC])
AC_LANG_PUSH([C++])
AC_CACHE_CHECK(your cpu frequency, ax_cpu_freq,
[AC_RUN_IFELSE([AC_LANG_PROGRAM([
+#include <cstring>
#include <iostream>
-#include <sys/time.h>
#include <fstream>
+#include <unistd.h>
+#include <sys/time.h>
using namespace std;
static __inline__ unsigned long long int rdtsc()