svn commit: r547062 - in head: devel/opencvs/files games/xray_re-tools/files
Alexey Dokuchaev
danfe at FreeBSD.org
Sun Aug 30 15:18:16 UTC 2020
Author: danfe
Date: Sun Aug 30 15:18:14 2020
New Revision: 547062
URL: https://svnweb.freebsd.org/changeset/ports/547062
Log:
When disabling pieces of code unsupported on FreeBSD, do it based on
the particular operating systems they are written for.
Modified:
head/devel/opencvs/files/patch-cvs.c
head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx
head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx
Modified: head/devel/opencvs/files/patch-cvs.c
==============================================================================
--- head/devel/opencvs/files/patch-cvs.c Sun Aug 30 15:16:37 2020 (r547061)
+++ head/devel/opencvs/files/patch-cvs.c Sun Aug 30 15:18:14 2020 (r547062)
@@ -12,7 +12,7 @@
struct stat st;
char fpath[PATH_MAX];
-+#if 0
++#ifdef __OpenBSD__
if (pledge("stdio rpath wpath cpath fattr proc exec", NULL) == -1)
err(1, "pledge");
+#endif
Modified: head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx
==============================================================================
--- head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx Sun Aug 30 15:16:37 2020 (r547061)
+++ head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx Sun Aug 30 15:18:14 2020 (r547062)
@@ -13,7 +13,7 @@
return pa ? file_age(pa->root + name) : 0;
}
-+#if 0
++#ifdef _WIN32
bool xr_file_system::copy_file(const char* src_path, const char* src_name,
const char* tgt_path, const char* tgt_name) const
{
Modified: head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx
==============================================================================
--- head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx Sun Aug 30 15:16:37 2020 (r547061)
+++ head/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx Sun Aug 30 15:18:14 2020 (r547062)
@@ -158,7 +158,7 @@
+ return uint32_t(age);
+}
+
-+#if 0
++#ifdef _WIN32
+bool xr_file_system::copy_file(const char* src_path, const char* tgt_path) const
+{
+ if (read_only()) {
More information about the svn-ports-all
mailing list