Re: alsa-lib-1.0.16 compile error

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

 



At Sat, 1 Mar 2008 03:58:16 -0600 (CST),
Stephen Stocker wrote:
> 
>   Hi.
> 
>   I'm running kernel 2.4.24-ck1, gcc 3.3.4. Trying to compile the
>   alsa-lib-1.0.16, I get the following error.

Does the patch below fix?


Takashi

diff -r 14ce0fc9a26d src/pcm/pcm_local.h
--- a/src/pcm/pcm_local.h	Fri Feb 29 12:42:57 2008 +0100
+++ b/src/pcm/pcm_local.h	Mon Mar 03 18:11:21 2008 +0100
@@ -944,13 +944,17 @@ typedef union snd_tmp_double {
 /* get the current timestamp */
 static inline void gettimestamp(snd_htimestamp_t *tstamp, int monotonic)
 {
+#ifdef HAVE_CLOCK_GETTIME
 	if (monotonic) {
 		clock_gettime(CLOCK_MONOTONIC, tstamp);
 	} else {
+#else
 		struct timeval tv;
 
 		gettimeofday(&tv, 0);
 		tstamp->tv_sec = tv.tv_sec;
 		tstamp->tv_nsec = tv.tv_usec * 1000L;
+#ifdef HAVE_CLOCK_GETTIME
 	}
+#endif
 }

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux