mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Unbreal after jail MFC
PR: 131512 Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>
This commit is contained in:
parent
a3c8e989ea
commit
aeea8cd0cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228155
@ -4,7 +4,7 @@
|
||||
p_jail_cfg_t cfg = (p_jail_cfg_t) ap_pcalloc(p, sizeof(jail_cfg_t));
|
||||
|
||||
cfg->jail_scrlevel = 3; /* good default value */
|
||||
+#if __FreeBSD_version < 800056
|
||||
+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
|
||||
cfg->jail.version = 0;
|
||||
+#else
|
||||
+ cfg->jail.version = JAIL_API_VERSION;
|
||||
@ -16,7 +16,7 @@
|
||||
if (!inet_aton(arg, &in)) {
|
||||
return "could not make sense of jail ip address";
|
||||
}
|
||||
+#if __FreeBSD_version < 800056
|
||||
+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
|
||||
cfg->jail.ip_number = ntohl(in.s_addr);
|
||||
+#else
|
||||
+ cfg->jail.ip4s = 1;
|
||||
@ -30,7 +30,7 @@
|
||||
return NULL;
|
||||
}
|
||||
cfg->jail_scrlevel = 3; /* good default value */
|
||||
+#if __FreeBSD_version < 800056
|
||||
+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
|
||||
cfg->jail.version = 0;
|
||||
+#else
|
||||
+ cfg->jail.version = JAIL_API_VERSION;
|
||||
@ -42,7 +42,7 @@
|
||||
if (!inet_aton(arg, &in)) {
|
||||
return "could not make sense of jail ip address";
|
||||
}
|
||||
+#if __FreeBSD_version < 800056
|
||||
+#if ((__FreeBSD_version >= 800000 && __FreeBSD_version < 800056) || __FreeBSD_version < 701103)
|
||||
cfg->jail.ip_number = ntohl(in.s_addr);
|
||||
+#else
|
||||
+ cfg->jail.ip4s = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user