Skip to contentSkip to conversation

iperf 1.7.0 thread bug.

PATCH Stephen Hemminger 1 participant 1 message Oct 5, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The iperf 1.7.0 hangs on AMD64, after several false starts the problem turned out to be that the Thread wrapper was incorrectly assumuing that pthread wasn't present (in Speaker.cpp), so some data sizes get messed up. Bedlam ensuses.

This fixes it.

Thread.hpp renamed from Thread.hpp.orig +3 -1
@@ -56,7 +56,9 @@
 #ifndef THREAD_H
 #define THREAD_H
 
-
+#ifdef HAVE_CONFIG_H
+    #include "config.h"
+#endif
 
 #if   defined( HAVE_POSIX_THREAD )