diff --git a/devel/opencvs/files/patch-cvs.c b/devel/opencvs/files/patch-cvs.c index 516e1353138a..366c4daf16de 100644 --- a/devel/opencvs/files/patch-cvs.c +++ b/devel/opencvs/files/patch-cvs.c @@ -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 diff --git a/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx b/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx index 5f275adf9538..6b4177faf5b6 100644 --- a/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx +++ b/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system.cxx @@ -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 { diff --git a/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx b/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx index 96c8a0286a0a..a5a3cebaf807 100644 --- a/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx +++ b/games/xray_re-tools/files/patch-sources_xray__re_xr__file__system__posix.cxx @@ -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()) {