diff options
author | Sam James <sam@gentoo.org> | 2022-10-30 17:24:38 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-30 17:42:39 +0000 |
commit | e72dfe05770de34e096d12bbc035363be40f9830 (patch) | |
tree | 4406fa5798ebb7cf008a2d28bd8390803bc051e9 /m4 | |
parent | 84237bcab28bac7f11c63f5fbc8c2d9158d59279 (diff) | |
download | autoconf-archive-e72dfe05770de34e096d12bbc035363be40f9830.tar.gz |
AX_CPU_FREQ: include <cstring>, <unistd.h> for memset(), usleep()
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_cpu_freq.m4 | 6 |
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() |