[Patch] Build Problems with gcc-4.3
Andreas Thienemann <[email protected]> Thu, 07 Feb 2008 09:25:20 +0100
| Newsgroups | gmane.comp.gnu.ccrtp.devel |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Ccrtp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/ccrtp-devel
ccrtp-1.6.0-gcc.patch
(text/x-patch, 344 B)
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 {