1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

When disabling pieces of code unsupported on FreeBSD, do it based on

the particular operating systems they are written for.
This commit is contained in:
Alexey Dokuchaev 2020-08-30 15:18:14 +00:00
parent 832ba59359
commit 66cdeec00b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547062
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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
{

View File

@ -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()) {