diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/bin/bbackupctl/bbackupctl.cpp boxbackup-0.10/bin/bbackupctl/bbackupctl.cpp --- boxbackup-0.10,bak/bin/bbackupctl/bbackupctl.cpp 2006-02-23 22:47:38.000000000 +0200 +++ boxbackup-0.10/bin/bbackupctl/bbackupctl.cpp 2008-07-20 18:59:40.000000000 +0300 @@ -48,6 +48,7 @@ #include "Box.h" #include +#include #ifdef HAVE_UNISTD_H #include diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/bin/bbackupquery/bbackupquery.cpp boxbackup-0.10/bin/bbackupquery/bbackupquery.cpp --- boxbackup-0.10,bak/bin/bbackupquery/bbackupquery.cpp 2006-02-23 22:47:38.000000000 +0200 +++ boxbackup-0.10/bin/bbackupquery/bbackupquery.cpp 2008-07-20 18:59:12.000000000 +0300 @@ -51,6 +51,7 @@ #include #endif #include +#include #include #ifdef HAVE_LIBREADLINE #ifdef HAVE_READLINE_READLINE_H diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/bin/bbstoreaccounts/bbstoreaccounts.cpp boxbackup-0.10/bin/bbstoreaccounts/bbstoreaccounts.cpp --- boxbackup-0.10,bak/bin/bbstoreaccounts/bbstoreaccounts.cpp 2006-02-23 22:47:37.000000000 +0200 +++ boxbackup-0.10/bin/bbstoreaccounts/bbstoreaccounts.cpp 2008-07-20 19:01:21.000000000 +0300 @@ -51,6 +51,7 @@ #include #include #include +#include #include #include diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/lib/backupclient/BackupClientFileAttributes.cpp boxbackup-0.10/lib/backupclient/BackupClientFileAttributes.cpp --- boxbackup-0.10,bak/lib/backupclient/BackupClientFileAttributes.cpp 2006-02-23 22:47:37.000000000 +0200 +++ boxbackup-0.10/lib/backupclient/BackupClientFileAttributes.cpp 2008-07-20 18:58:27.000000000 +0300 @@ -481,7 +481,7 @@ char* buffer = static_cast(outputBlock.GetBuffer()); // Add the path name for the symbolic link, and add 0 termination - std::memcpy(buffer+oldSize, linkedTo, linkedToSize); + ::memcpy(buffer+oldSize, linkedTo, linkedToSize); buffer[oldSize+linkedToSize] = '\0'; } #endif @@ -549,9 +549,9 @@ // Store length and text for attibute name u_int16_t keyLength = htons(attrKey.size()+1); - std::memcpy(buffer+xattrSize, &keyLength, sizeof(u_int16_t)); + ::memcpy(buffer+xattrSize, &keyLength, sizeof(u_int16_t)); xattrSize += sizeof(u_int16_t); - std::memcpy(buffer+xattrSize, attrKey.c_str(), attrKey.size()+1); + ::memcpy(buffer+xattrSize, attrKey.c_str(), attrKey.size()+1); xattrSize += attrKey.size()+1; // Leave space for value size @@ -584,12 +584,12 @@ // Fill in value size u_int32_t valueLength = htonl(valueSize); - std::memcpy(buffer+valueSizeOffset, &valueLength, sizeof(u_int32_t)); + ::memcpy(buffer+valueSizeOffset, &valueLength, sizeof(u_int32_t)); } // Fill in attribute block size u_int32_t xattrBlockLength = htonl(xattrSize-xattrBlockSizeOffset-sizeof(u_int32_t)); - std::memcpy(buffer+xattrBlockSizeOffset, &xattrBlockLength, sizeof(u_int32_t)); + ::memcpy(buffer+xattrBlockSizeOffset, &xattrBlockLength, sizeof(u_int32_t)); outputBlock.ResizeBlock(xattrSize); } @@ -676,7 +676,7 @@ } #endif - xattrOffset += std::strlen(reinterpret_cast(pattr+1))+1; + xattrOffset += ::strlen(reinterpret_cast(pattr+1))+1; } // If working as root, set user IDs @@ -817,7 +817,7 @@ const char* buffer = static_cast(mpClearAttributes->GetBuffer()); u_int32_t xattrBlockLength = 0; - std::memcpy(&xattrBlockLength, buffer+xattrOffset, sizeof(u_int32_t)); + ::memcpy(&xattrBlockLength, buffer+xattrOffset, sizeof(u_int32_t)); int xattrBlockSize = ntohl(xattrBlockLength); xattrOffset += sizeof(u_int32_t); @@ -831,7 +831,7 @@ while(xattrOffset + using namespace BackupStoreFileCryptVar; using namespace BackupStoreFileCreation; diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/lib/backupclient/BackupStoreFileEncodeStream.cpp boxbackup-0.10/lib/backupclient/BackupStoreFileEncodeStream.cpp --- boxbackup-0.10,bak/lib/backupclient/BackupStoreFileEncodeStream.cpp 2006-02-23 22:47:37.000000000 +0200 +++ boxbackup-0.10/lib/backupclient/BackupStoreFileEncodeStream.cpp 2008-07-20 18:54:21.000000000 +0300 @@ -62,6 +62,8 @@ #include "MemLeakFindOn.h" +#include + using namespace BackupStoreFileCryptVar; diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/lib/backupclient/BackupStoreFile.h boxbackup-0.10/lib/backupclient/BackupStoreFile.h --- boxbackup-0.10,bak/lib/backupclient/BackupStoreFile.h 2006-02-23 22:47:37.000000000 +0200 +++ boxbackup-0.10/lib/backupclient/BackupStoreFile.h 2008-07-20 18:51:08.000000000 +0300 @@ -53,6 +53,7 @@ #include "BackupStoreFilename.h" #include +#include typedef struct { diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/lib/common/Configuration.cpp boxbackup-0.10/lib/common/Configuration.cpp --- boxbackup-0.10,bak/lib/common/Configuration.cpp 2006-02-23 22:47:35.000000000 +0200 +++ boxbackup-0.10/lib/common/Configuration.cpp 2008-07-20 18:52:37.000000000 +0300 @@ -57,6 +57,8 @@ #include "MemLeakFindOn.h" +#include + // utility whitespace function inline bool iw(int c) { diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/lib/common/WaitForEvent.cpp boxbackup-0.10/lib/common/WaitForEvent.cpp --- boxbackup-0.10,bak/lib/common/WaitForEvent.cpp 2006-02-23 22:47:35.000000000 +0200 +++ boxbackup-0.10/lib/common/WaitForEvent.cpp 2008-07-20 18:53:33.000000000 +0300 @@ -53,6 +53,7 @@ #include #include +#include #include "WaitForEvent.h" diff -ur --exclude '*.o' --exclude '*.a' --exclude '*~' boxbackup-0.10,bak/lib/raidfile/RaidFileRead.cpp boxbackup-0.10/lib/raidfile/RaidFileRead.cpp --- boxbackup-0.10,bak/lib/raidfile/RaidFileRead.cpp 2006-02-23 22:47:37.000000000 +0200 +++ boxbackup-0.10/lib/raidfile/RaidFileRead.cpp 2008-07-20 19:00:48.000000000 +0300 @@ -59,6 +59,7 @@ #include #include +#include #include #include