shithub: libsamplerate

Download patch

ref: 850e9c3f80019188c12df4e3c829e9514b7dadfa
parent: 420c14392244e25a0c95ac58cc80e8c6e05e76f3
author: Erik de Castro Lopo <erikd@miles>
date: Fri Sep 10 07:09:22 EDT 2004

Check for <sys/times.h> and use that in src-evaluate.c.

--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@
 
 AC_HEADER_STDC
 
-AC_CHECK_HEADERS(stdint.h)
+AC_CHECK_HEADERS(stdint.h sys/times.h)
 
 #====================================================================================
 # Couple of initializations here. Fill in real values later.
--- a/tests/src-evaluate.c
+++ b/tests/src-evaluate.c
@@ -22,12 +22,12 @@
 #include <string.h>
 #include <ctype.h>
 
-#include <time.h>
-#include <sys/times.h>
-
 #include "config.h"
 
-#if (HAVE_FFTW3 && HAVE_SNDFILE)
+#if (HAVE_FFTW3 && HAVE_SNDFILE && HAVE_SYS_TIMES_H)
+
+#include <time.h>
+#include <sys/times.h>
 
 #include <sndfile.h>
 #include <math.h>