tag 454889 patch thanks Martin Michlmayr <[EMAIL PROTECTED]> (07/12/2007): > Package: dansguardian > Version: 2.8.0.6-antivirus-6.4.4.1-4 > Usertags: ftbfs-gcc-4.3
Hi, please find attached a patch to fix this FTBFS. Cheers, -- Cyril Brulebois
--- a/ClamAV.cpp
+++ b/ClamAV.cpp
@@ -20,6 +20,8 @@
#include "ClamAV.hpp"
+#include <cstring>
+
extern OptionContainer o;
--- a/DataBuffer.cpp
+++ b/DataBuffer.cpp
@@ -34,6 +34,8 @@
#include <istream.h>
#endif
+#include <cstring>
+
extern OptionContainer o;
DataBuffer::DataBuffer ():data (new char[0]),
--- a/DynamicURLList.cpp
+++ b/DynamicURLList.cpp
@@ -24,6 +24,8 @@
#include <sys/stat.h>
#include <sys/time.h>
+#include <cstring>
+
extern OptionContainer o;
extern bool isDaemonised;
--- a/HTTPHeader.cpp
+++ b/HTTPHeader.cpp
@@ -32,6 +32,7 @@
#include "RegExp.hpp"
#include <cerrno>
#include <zlib.h>
+#include <string.h>
void
--- a/ListContainer.cpp
+++ b/ListContainer.cpp
@@ -30,6 +30,7 @@
#include <fstream>
#include <sys/stat.h>
#include <sys/time.h>
+#include <cstring>
extern bool isDaemonised;
extern OptionContainer o;
--- a/RegExp.cpp
+++ b/RegExp.cpp
@@ -19,6 +19,7 @@
#include "RegExp.hpp"
#include <iostream>
+#include <cstring>
RegExp::RegExp ():imatched (false), wascompiled (false)
{
--- a/Socket.cpp
+++ b/Socket.cpp
@@ -36,6 +36,7 @@
#include <unistd.h>
#include <string>
#include <stdexcept>
+#include <cstring>
// This class contains client and server Internet socket init and handling
--- a/SysV.cpp
+++ b/SysV.cpp
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <cerrno>
+#include <cstring>
extern OptionContainer o;
--- a/TrickleHandler.cpp
+++ b/TrickleHandler.cpp
@@ -24,6 +24,8 @@
#include "TrickleHandler.hpp"
+#include <cstring>
+
// ----------------- FileBuffer -----------------------
FileBuffer::~FileBuffer ()
--- a/VirusScanner.cpp
+++ b/VirusScanner.cpp
@@ -19,6 +19,8 @@
#include "VirusScanner.hpp"
+#include <cstring>
+
extern OptionContainer o;
VirusScanner::VirusScanner ():tempFileName (NULL), tempFileFD (0), avEngine (NULL), scanIt (true)
signature.asc
Description: Digital signature

