[Box Backup] Patch for openSuSE 11.0

Tuukka Pasanen boxbackup@boxbackup.org
Fri, 12 Sep 2008 10:34:26 +0300


This is a multi-part message in MIME format.
--------------070207050802040106020705
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
I'm packing boxbackup for openSUSE 10.2/10.3/11.0/Factory and noticed 
that boxbackup doesn't compile on openSUSE 11.0.
So here is the patch that adds needed includes! I still have some 
problems to compile Berkley in (I have to investigate configure.ac more)!

Tuukka

--------------070207050802040106020705
Content-Type: text/x-patch;
 name="boxbackup-missing_includes_opensuse110-0.11rc2.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="boxbackup-missing_includes_opensuse110-0.11rc2.diff"

diff -urN boxbackup-0.11rc2/bin/bbackupctl/bbackupctl.cpp boxbackup-0.11rc2-patch//bin/bbackupctl/bbackupctl.cpp
--- boxbackup-0.11rc2/bin/bbackupctl/bbackupctl.cpp	2008-01-29 02:58:26.000000000 +0200
+++ boxbackup-0.11rc2-patch//bin/bbackupctl/bbackupctl.cpp	2008-09-12 10:18:44.000000000 +0300
@@ -60,6 +60,7 @@
 #include "Socket.h"
 #include "SocketStream.h"
 #include "IOStreamGetLine.h"
+#include <cstdlib>
 
 #ifdef WIN32
 	#include "WinNamedPipeStream.h"
diff -urN boxbackup-0.11rc2/bin/bbackupquery/bbackupquery.cpp boxbackup-0.11rc2-patch//bin/bbackupquery/bbackupquery.cpp
--- boxbackup-0.11rc2/bin/bbackupquery/bbackupquery.cpp	2008-01-29 02:58:26.000000000 +0200
+++ boxbackup-0.11rc2-patch//bin/bbackupquery/bbackupquery.cpp	2008-09-12 10:18:09.000000000 +0300
@@ -54,6 +54,7 @@
 
 #include <errno.h>
 #include <stdio.h>
+#include <cstdlib>
 
 #ifdef HAVE_SYS_TYPES_H
 	#include <sys/types.h>
diff -urN boxbackup-0.11rc2/bin/bbstoreaccounts/bbstoreaccounts.cpp boxbackup-0.11rc2-patch//bin/bbstoreaccounts/bbstoreaccounts.cpp
--- boxbackup-0.11rc2/bin/bbstoreaccounts/bbstoreaccounts.cpp	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//bin/bbstoreaccounts/bbstoreaccounts.cpp	2008-09-12 10:20:30.000000000 +0300
@@ -54,6 +54,7 @@
 #include <limits.h>
 #include <vector>
 #include <algorithm>
+#include <cstring>
 
 #include "BoxPortsAndFiles.h"
 #include "BackupStoreConfigVerify.h"
diff -urN boxbackup-0.11rc2/lib/backupclient/BackupClientFileAttributes.cpp boxbackup-0.11rc2-patch//lib/backupclient/BackupClientFileAttributes.cpp
--- boxbackup-0.11rc2/lib/backupclient/BackupClientFileAttributes.cpp	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/backupclient/BackupClientFileAttributes.cpp	2008-09-12 10:15:00.000000000 +0300
@@ -52,6 +52,8 @@
 	#include <unistd.h>
 #endif
 
+#include <cstring>
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <string.h>
diff -urN boxbackup-0.11rc2/lib/backupclient/BackupClientRestore.cpp boxbackup-0.11rc2-patch//lib/backupclient/BackupClientRestore.cpp
--- boxbackup-0.11rc2/lib/backupclient/BackupClientRestore.cpp	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/backupclient/BackupClientRestore.cpp	2008-09-12 10:15:24.000000000 +0300
@@ -59,6 +59,7 @@
 #include <limits.h>
 #include <stdio.h>
 #include <errno.h>
+#include <cstdlib>
 
 #include "BackupClientRestore.h"
 #include "autogen_BackupProtocolClient.h"
diff -urN boxbackup-0.11rc2/lib/backupclient/BackupStoreFileCmbIdx.cpp boxbackup-0.11rc2-patch//lib/backupclient/BackupStoreFileCmbIdx.cpp
--- boxbackup-0.11rc2/lib/backupclient/BackupStoreFileCmbIdx.cpp	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/backupclient/BackupStoreFileCmbIdx.cpp	2008-09-12 10:16:34.000000000 +0300
@@ -50,6 +50,7 @@
 
 #include <new>
 #include <string.h>
+#include <cstdlib>
 
 #include "BackupStoreFile.h"
 #include "BackupStoreFileWire.h"
diff -urN boxbackup-0.11rc2/lib/backupclient/BackupStoreFile.cpp boxbackup-0.11rc2-patch//lib/backupclient/BackupStoreFile.cpp
--- boxbackup-0.11rc2/lib/backupclient/BackupStoreFile.cpp	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/backupclient/BackupStoreFile.cpp	2008-09-12 10:16:00.000000000 +0300
@@ -56,6 +56,7 @@
 #include <string.h>
 #include <new>
 #include <string.h>
+#include <cstdlib>
 
 #ifndef BOX_DISABLE_BACKWARDS_COMPATIBILITY_BACKUPSTOREFILE
 	#include <stdio.h>
diff -urN boxbackup-0.11rc2/lib/backupclient/BackupStoreFile.h boxbackup-0.11rc2-patch//lib/backupclient/BackupStoreFile.h
--- boxbackup-0.11rc2/lib/backupclient/BackupStoreFile.h	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/backupclient/BackupStoreFile.h	2008-09-12 10:17:03.000000000 +0300
@@ -54,6 +54,7 @@
 #include "BackupStoreFilename.h"
 
 #include <memory>
+#include <cstdlib>
 
 typedef struct 
 {
diff -urN boxbackup-0.11rc2/lib/common/Logging.cpp boxbackup-0.11rc2-patch//lib/common/Logging.cpp
--- boxbackup-0.11rc2/lib/common/Logging.cpp	2008-01-29 02:58:23.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/common/Logging.cpp	2008-09-12 10:10:13.000000000 +0300
@@ -58,6 +58,7 @@
 #include "Logging.h"
 
 #include <iomanip>
+#include <cstring>
 
 #include "BoxTime.h"
 
diff -urN boxbackup-0.11rc2/lib/common/Timer.cpp boxbackup-0.11rc2-patch//lib/common/Timer.cpp
--- boxbackup-0.11rc2/lib/common/Timer.cpp	2008-01-29 02:58:22.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/common/Timer.cpp	2008-09-12 10:11:03.000000000 +0300
@@ -50,6 +50,7 @@
 #include "Box.h"
 
 #include <signal.h>
+#include <string.h>
 
 #include "Timer.h"
 #include "Logging.h"
diff -urN boxbackup-0.11rc2/lib/common/WaitForEvent.h boxbackup-0.11rc2-patch//lib/common/WaitForEvent.h
--- boxbackup-0.11rc2/lib/common/WaitForEvent.h	2008-01-29 02:58:22.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/common/WaitForEvent.h	2008-09-12 10:12:26.000000000 +0300
@@ -49,6 +49,8 @@
 #ifndef WAITFOREVENT__H
 #define WAITFOREVENT__H
 
+#include <cstdlib>
+
 #ifdef HAVE_KQUEUE
 	#include <sys/event.h>
 	#include <sys/time.h>
diff -urN boxbackup-0.11rc2/lib/raidfile/RaidFileRead.cpp boxbackup-0.11rc2-patch//lib/raidfile/RaidFileRead.cpp
--- boxbackup-0.11rc2/lib/raidfile/RaidFileRead.cpp	2008-01-29 02:58:25.000000000 +0200
+++ boxbackup-0.11rc2-patch//lib/raidfile/RaidFileRead.cpp	2008-09-12 10:19:21.000000000 +0300
@@ -68,6 +68,7 @@
 #include <string.h>
 #include <memory>
 #include <map>
+#include <cstdlib>
 
 #include "RaidFileRead.h"
 #include "RaidFileException.h"

--------------070207050802040106020705--