diff options
| author | Kevin Lo <kevlo@FreeBSD.org> | 2015-06-23 05:25:17 +0000 |
|---|---|---|
| committer | Kevin Lo <kevlo@FreeBSD.org> | 2015-06-23 05:25:17 +0000 |
| commit | bd73db2bd556c6bba53fe453199b7526f422fd2c (patch) | |
| tree | 40b8cb0371e619abaab74507dca10b7e233ffc4d /sysutils/zbackup/files | |
| parent | - Always use USE_RC_SUBR now that it handles properly PREFIX=/usr (diff) | |
Update to 1.4.1
Notes
Notes:
svn path=/head/; revision=390350
Diffstat (limited to 'sysutils/zbackup/files')
| -rw-r--r-- | sysutils/zbackup/files/patch-compression.cc | 11 | ||||
| -rw-r--r-- | sysutils/zbackup/files/patch-dir.cc | 11 | ||||
| -rw-r--r-- | sysutils/zbackup/files/patch-file.cc | 21 |
3 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/zbackup/files/patch-compression.cc b/sysutils/zbackup/files/patch-compression.cc new file mode 100644 index 000000000000..c54882139083 --- /dev/null +++ b/sysutils/zbackup/files/patch-compression.cc @@ -0,0 +1,11 @@ +--- compression.cc.orig 2015-06-23 12:18:26.923826000 +0800 ++++ compression.cc 2015-06-23 12:19:37.282685000 +0800 +@@ -292,7 +292,7 @@ + } + }; + +-#include <endian.h> ++#include <machine/endian.h> + + // like NoStreamEnDecoder, but also adds the uncompressed size before the stream + //NOTE You should make sure that the compression function doesn't overwrite any diff --git a/sysutils/zbackup/files/patch-dir.cc b/sysutils/zbackup/files/patch-dir.cc new file mode 100644 index 000000000000..71aa0a0c2f5d --- /dev/null +++ b/sysutils/zbackup/files/patch-dir.cc @@ -0,0 +1,11 @@ +--- dir.cc.orig 2015-06-23 12:16:14.909394000 +0800 ++++ dir.cc 2015-06-23 12:16:22.284741000 +0800 +@@ -103,7 +103,7 @@ + if ( !entryPtr ) + return false; + +-#ifndef __APPLE__ ++#if !defined(__APPLE__) && !defined(__FreeBSD__) + if ( fstatat( dirfd( dir ), entry.d_name, &entryStats, + AT_SYMLINK_NOFOLLOW ) != 0 ) + #else diff --git a/sysutils/zbackup/files/patch-file.cc b/sysutils/zbackup/files/patch-file.cc new file mode 100644 index 000000000000..81e6d8928588 --- /dev/null +++ b/sysutils/zbackup/files/patch-file.cc @@ -0,0 +1,21 @@ +--- file.cc.orig 2014-12-16 20:32:29.000000000 +0800 ++++ file.cc 2015-06-23 13:16:37.741129000 +0800 +@@ -6,7 +6,7 @@ + #include <unistd.h> + #include <cerrno> + #include <cstring> +-#ifdef __APPLE__ ++#if defined(__APPLE_) || defined(__FreeBSD__) + #include <sys/socket.h> + #else + #include <sys/sendfile.h> +@@ -67,6 +67,9 @@ + #ifdef __APPLE__ + if ( -1 == sendfile(write_fd, read_fd, offset, &stat_buf.st_size, NULL, 0) ) + throw exCantRename( from + " to " + to ); ++ #elif defined(__FreeBSD__) ++ if ( -1 == sendfile(write_fd, read_fd, offset, stat_buf.st_size, NULL, NULL, 0) ) ++ throw exCantRename( from + " to " + to ); + #else + if ( -1 == sendfile(write_fd, read_fd, &offset, stat_buf.st_size) ) + throw exCantRename( from + " to " + to ); |
