From ac7e5faf87feb870fa8e835e0d1247871c34c42f Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Thu, 18 Aug 2016 01:00:51 +0000 Subject: Fix BROKEN for < 10.3. While here drop maintainership. PR: 211943 Submitted by: amdmi3 --- .../freefilesync/files/patch-zen_file__access.cpp | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 sysutils/freefilesync/files/patch-zen_file__access.cpp (limited to 'sysutils/freefilesync/files/patch-zen_file__access.cpp') diff --git a/sysutils/freefilesync/files/patch-zen_file__access.cpp b/sysutils/freefilesync/files/patch-zen_file__access.cpp deleted file mode 100644 index c642df738d24..000000000000 --- a/sysutils/freefilesync/files/patch-zen_file__access.cpp +++ /dev/null @@ -1,26 +0,0 @@ ---- ../../zen/file_access.cpp.orig 2016-01-11 12:13:10 UTC -+++ ../../zen/file_access.cpp -@@ -877,6 +877,15 @@ void setFileTimeRaw(const Zstring& fileP - //https://sourceforge.net/p/freefilesync/discussion/open-discussion/thread/218564cf/ - newTimes[1] = modTime; //modification time - -+#if defined(__FreeBSD__) -+// only defines __FreeBSD_version -+#include -+#endif -+ -+#if (defined(__FreeBSD__) && (__FreeBSD_version < 1002506 || \ -+ (__FreeBSD_version >= 1100000 && __FreeBSD_version < 1100056))) -+ throw ErrorLinuxFallbackToUtimes(L""); -+#else - //=> using open()/futimens() for regular files and utimensat(AT_SYMLINK_NOFOLLOW) for symlinks is consistent with "cp" and "touch"! - if (procSl == ProcSymlink::FOLLOW) - { -@@ -898,6 +907,7 @@ void setFileTimeRaw(const Zstring& fileP - if (::utimensat(AT_FDCWD, filePath.c_str(), newTimes, AT_SYMLINK_NOFOLLOW) != 0) - THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot write modification time of %x."), L"%x", fmtPath(filePath)), L"utimensat"); - } -+#endif - } - - -- cgit v1.2.3