summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2009-01-22 17:00:58 +0100
committerReinhard Tartler <siretart@tauware.de>2009-01-22 17:00:58 +0100
commit4d6fbb4293310d8b26dc3ab1c7758de963c87f74 (patch)
treefa23a68a9b1fb4578c51c1ee06c89535a583a5a2 /lib
parent4b83954e9c06a29ac6079d95e0cff30a26422389 (diff)
more include fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/common/Test.h2
-rw-r--r--lib/common/WaitForEvent.cpp4
-rw-r--r--lib/common/WaitForEvent.h4
-rw-r--r--lib/raidfile/RaidFileRead.cpp2
-rw-r--r--lib/raidfile/RaidFileRead.h3
5 files changed, 7 insertions, 8 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h
index 6e762786..282822b0 100644
--- a/lib/common/Test.h
+++ b/lib/common/Test.h
@@ -61,7 +61,7 @@
#include <unistd.h>
#endif
-#include <string>
+#include <cstring>
#ifdef WIN32
#define BBACKUPCTL "..\\..\\bin\\bbackupctl\\bbackupctl.exe"
diff --git a/lib/common/WaitForEvent.cpp b/lib/common/WaitForEvent.cpp
index f922fe86..1f3a67d0 100644
--- a/lib/common/WaitForEvent.cpp
+++ b/lib/common/WaitForEvent.cpp
@@ -104,7 +104,7 @@ WaitForEvent::~WaitForEvent()
#else
if(mpPollInfo != 0)
{
- std::free(mpPollInfo);
+ ::free(mpPollInfo);
mpPollInfo = 0;
}
#endif
@@ -180,7 +180,7 @@ void *WaitForEvent::Wait()
if(mpPollInfo == 0)
{
// Yes...
- mpPollInfo = (struct pollfd *)std::malloc((sizeof(struct pollfd) * mItems.size()) + 4);
+ mpPollInfo = (struct pollfd *)::malloc((sizeof(struct pollfd) * mItems.size()) + 4);
if(mpPollInfo == 0)
{
throw std::bad_alloc();
diff --git a/lib/common/WaitForEvent.h b/lib/common/WaitForEvent.h
index 63a33b92..111665a1 100644
--- a/lib/common/WaitForEvent.h
+++ b/lib/common/WaitForEvent.h
@@ -59,12 +59,12 @@
#endif
#endif
+#include <cstdlib>
+
#include "CommonException.h"
#include "MemLeakFindOn.h"
-#include <cstdlib>
-
class WaitForEvent
{
public:
diff --git a/lib/raidfile/RaidFileRead.cpp b/lib/raidfile/RaidFileRead.cpp
index 8e6dd46b..3e969188 100644
--- a/lib/raidfile/RaidFileRead.cpp
+++ b/lib/raidfile/RaidFileRead.cpp
@@ -76,8 +76,6 @@
#include "MemLeakFindOn.h"
-#include <cstdlib>
-
#define READ_NUMBER_DISCS_REQUIRED 3
#define READV_MAX_BLOCKS 64
diff --git a/lib/raidfile/RaidFileRead.h b/lib/raidfile/RaidFileRead.h
index 083e053f..9cd3cede 100644
--- a/lib/raidfile/RaidFileRead.h
+++ b/lib/raidfile/RaidFileRead.h
@@ -49,7 +49,8 @@
#ifndef RAIDFILEREAD__H
#define RAIDFILEREAD__H
-#include <string>
+#include <cstring>
+#include <cstdlib>
#include <memory>
#include <vector>