Hi!
The attached patch adds some #include directives to allow Equalizer to
be compiled on the upcoming Debian GNU/Linux 5.0 (lenny).
In most cases, <string.h> is needed to get the strerror(), memcpy(), or
memset() prototype. At two places, <typeinfo> is needed before using
typeid. At one place, <strings.h> is needed to get bzero().
Is there a reason for using the C headers (<errno.h>, <string.h>, ...)
instead of the C++ headers (<cerrno>, <cstring>, ...)?
Regards,
Martin
--
Computer Graphics and Multimedia Systems Group
University of Siegen, Germany
http://www.cg.informatik.uni-siegen.de/
Index: lib/net/dataIStream.cpp
===================================================================
--- lib/net/dataIStream.cpp (revision 2177)
+++ lib/net/dataIStream.cpp (working copy)
@@ -7,6 +7,8 @@
#include "log.h"
#include <eq/base/debug.h>
+#include <string.h>
+
using namespace std;
namespace eq
Index: lib/net/connection.h
===================================================================
--- lib/net/connection.h (revision 2177)
+++ lib/net/connection.h (working copy)
@@ -16,6 +16,7 @@
#include <eq/base/spinLock.h>
#include <sys/types.h>
+#include <string.h>
#include <vector>
#ifdef WIN32_API
Index: lib/net/bufferConnection.cpp
===================================================================
--- lib/net/bufferConnection.cpp (revision 2177)
+++ lib/net/bufferConnection.cpp (working copy)
@@ -4,6 +4,8 @@
#include "bufferConnection.h"
+#include <string.h>
+
using namespace std;
namespace eq
Index: lib/base/refPtr.h
===================================================================
--- lib/base/refPtr.h (revision 2177)
+++ lib/base/refPtr.h (working copy)
@@ -9,6 +9,7 @@
#include <eq/base/debug.h>
#include <iostream>
+#include <typeinfo>
#include <stdlib.h>
namespace eq
Index: lib/base/thread.cpp
===================================================================
--- lib/base/thread.cpp (revision 2177)
+++ lib/base/thread.cpp (working copy)
@@ -14,6 +14,7 @@
#include <eq/base/spinLock.h>
#include <errno.h>
+#include <string.h>
#include <pthread.h>
#include <algorithm>
Index: lib/base/spinLock.cpp
===================================================================
--- lib/base/spinLock.cpp (revision 2177)
+++ lib/base/spinLock.cpp (working copy)
@@ -7,6 +7,7 @@
#include "log.h"
#include <errno.h>
+#include <string.h>
#include <pthread.h>
#ifndef WIN32
# include <unistd.h> // for _POSIX_SPIN_LOCKS on some systems
Index: lib/base/sema.cpp
===================================================================
--- lib/base/sema.cpp (revision 2177)
+++ lib/base/sema.cpp (working copy)
@@ -7,6 +7,7 @@
#include <eq/base/log.h>
#include <errno.h>
+#include <string.h>
#include <pthread.h>
using namespace std;
Index: lib/base/barrier.cpp
===================================================================
--- lib/base/barrier.cpp (revision 2177)
+++ lib/base/barrier.cpp (working copy)
@@ -7,6 +7,7 @@
#include "log.h"
#include <errno.h>
+#include <string.h>
#include <pthread.h>
using namespace std;
Index: lib/base/idPool.cpp
===================================================================
--- lib/base/idPool.cpp (revision 2177)
+++ lib/base/idPool.cpp (working copy)
@@ -2,6 +2,8 @@
/* Copyright (c) 2005-2008, Stefan Eilemann <[EMAIL PROTECTED]>
All rights reserved. */
+#include <sstream>
+
#include "idPool.h"
#include <eq/base/debug.h>
Index: lib/base/launcher.cpp
===================================================================
--- lib/base/launcher.cpp (revision 2177)
+++ lib/base/launcher.cpp (working copy)
@@ -6,6 +6,7 @@
#include "log.h"
#include <errno.h>
+#include <string.h>
#include <signal.h>
#include <sstream>
Index: lib/base/timedLock.cpp
===================================================================
--- lib/base/timedLock.cpp (revision 2177)
+++ lib/base/timedLock.cpp (working copy)
@@ -8,6 +8,7 @@
#include <pthread.h>
#include <errno.h>
+#include <string.h>
#include <sys/timeb.h>
#ifdef WIN32_API
Index: lib/base/thread.h
===================================================================
--- lib/base/thread.h (revision 2177)
+++ lib/base/thread.h (working copy)
@@ -12,6 +12,8 @@
#endif
#include <vector>
+#include <typeinfo>
+#include <sstream>
namespace eq
{
Index: lib/base/perThread.h
===================================================================
--- lib/base/perThread.h (revision 2177)
+++ lib/base/perThread.h (working copy)
@@ -5,6 +5,9 @@
#ifndef EQBASE_PERTHREAD_H
#define EQBASE_PERTHREAD_H
+#include <errno.h>
+#include <string.h>
+
#include <eq/base/base.h>
#include <eq/base/executionListener.h>
Index: lib/base/lock.cpp
===================================================================
--- lib/base/lock.cpp (revision 2177)
+++ lib/base/lock.cpp (working copy)
@@ -7,6 +7,7 @@
#include "log.h"
#include <errno.h>
+#include <string.h>
#include <pthread.h>
using namespace std;
Index: lib/base/mtQueue.h
===================================================================
--- lib/base/mtQueue.h (revision 2177)
+++ lib/base/mtQueue.h (working copy)
@@ -9,6 +9,8 @@
#include <eq/base/debug.h>
#include <queue>
+#include <string.h>
+
namespace eq
{
namespace base
Index: lib/base/monitor.h
===================================================================
--- lib/base/monitor.h (revision 2177)
+++ lib/base/monitor.h (working copy)
@@ -5,6 +5,9 @@
#ifndef EQBASE_MONITOR_H
#define EQBASE_MONITOR_H
+#include <errno.h>
+#include <string.h>
+
#include <eq/base/nonCopyable.h> // base class
namespace eq
Index: lib/client/event.cpp
===================================================================
--- lib/client/event.cpp (revision 2177)
+++ lib/client/event.cpp (working copy)
@@ -6,6 +6,8 @@
#include <eq/base/idPool.h>
+#include <strings.h>
+
using namespace std;
using namespace eq::base;
_______________________________________________
eq-dev mailing list
[email protected]
https://in-zueri.ch/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com