Date: Sun, 30 Aug 2020 15:18:15 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547062 - in head: devel/opencvs/files games/xray_re-tools/files Message-ID: <202008301518.07UFIFXN007734@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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()) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008301518.07UFIFXN007734>