forked from Lainports/freebsd-ports
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:
parent
832ba59359
commit
66cdeec00b
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue