Browse files

wrap inet_aton in a #if block as inet_aton is present in 8.x;

patch submitted by ashish@FreeBSD.org
  • Loading branch information...
1 parent f0e65c2 commit 4ff6cc45690cf4058526df038569f78e435a7ee1 @jschauma jschauma committed Jul 13, 2011
Showing with 6 additions and 0 deletions.
  1. +4 −0 freebsd/CHANGES
  2. +2 −0 freebsd/kmod/dscp_rewrite.c
View
4 freebsd/CHANGES
@@ -1,3 +1,7 @@
+Version 1.1.1 (2011-07-12)
+ * wrap inet_aton in a #if block as inet_aton is present in 8.x;
+ patch submitted by ashish@FreeBSD.org
+
Version 1.0.9 (2011-02-17)
* fix version restriction introduced in 1.0.6 that made
this package fail on FreeBSD 6.x
View
2 freebsd/kmod/dscp_rewrite.c
@@ -60,6 +60,7 @@ SYSCTL_INT(_net_inet_ip_dscp_rewrite, OID_AUTO, enabled, CTLFLAG_RW,
static struct in_addr rewrite_addresses[64];
+#if __FreeBSD_version < 800000
static int
inet_aton(const char *cp, struct in_addr *addr)
{
@@ -105,6 +106,7 @@ inet_aton(const char *cp, struct in_addr *addr)
octets[2] << 8 | octets[3]);
return (0);
}
+#endif
static int
rewrite_sysctl_handler(SYSCTL_HANDLER_ARGS)

0 comments on commit 4ff6cc4

Please sign in to comment.