Hello,

Building the current version of ccrtp-1.6.0 on gcc-4.3 fails with the following error:

control.cpp: In member function 'virtual timeval ost::QueueRTCPManager::computeRTCPInterval()':
control.cpp:729: error: 'rand' was not declared in this scope
control.cpp:729: error: 'RAND_MAX' was not declared in this scope
make[3]: *** [control.lo] Error 1

This can be easily fixed by including cstdlib.

Easyfix patch is attached.

regards,
 andreas
diff -up ccrtp-1.6.0/src/control.cpp.orig ccrtp-1.6.0/src/control.cpp
--- ccrtp-1.6.0/src/control.cpp.orig	2008-02-07 08:49:22.000000000 +0100
+++ ccrtp-1.6.0/src/control.cpp	2008-02-07 08:50:09.000000000 +0100
@@ -43,6 +43,7 @@
 
 #include "private.h"
 #include <ccrtp/cqueue.h>
+#include <cstdlib>
 
 #ifdef  CCXX_NAMESPACES
 namespace ost {
_______________________________________________
Ccrtp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ccrtp-devel

Reply via email to