diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-02-12 21:31:40 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-02-12 21:31:40 +0000 |
commit | aeea8cd0cbcb85d3b001c853c9b6a909a88786c2 (patch) | |
tree | 0b4b0272245637c54dc9d18dfbdf75bee2d70692 | |
parent | a3c8e989ead0b8ad12405b0e19c49b1cb59e4ef9 (diff) | |
download | ports-aeea8cd0cbcb85d3b001c853c9b6a909a88786c2.tar.gz ports-aeea8cd0cbcb85d3b001c853c9b6a909a88786c2.zip |
Notes
-rw-r--r-- | www/mod_jail/files/patch-mod_jail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/mod_jail/files/patch-mod_jail.c b/www/mod_jail/files/patch-mod_jail.c index bd81ad910cde..786b1e153f7f 100644 --- a/www/mod_jail/files/patch-mod_jail.c +++ b/www/mod_jail/files/patch-mod_jail.c @@ -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; |