Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

patch submitted by ashish@FreeBSD.org
  • Loading branch information...
commit 4ff6cc45690cf4058526df038569f78e435a7ee1 1 parent f0e65c2
Jan Schaumann jschauma authored

Showing 2 changed files with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 freebsd/CHANGES
  2. +2 0  freebsd/kmod/dscp_rewrite.c
4 freebsd/CHANGES
... ... @@ -1,3 +1,7 @@
  1 +Version 1.1.1 (2011-07-12)
  2 + * wrap inet_aton in a #if block as inet_aton is present in 8.x;
  3 + patch submitted by ashish@FreeBSD.org
  4 +
1 5 Version 1.0.9 (2011-02-17)
2 6 * fix version restriction introduced in 1.0.6 that made
3 7 this package fail on FreeBSD 6.x
2  freebsd/kmod/dscp_rewrite.c
@@ -60,6 +60,7 @@ SYSCTL_INT(_net_inet_ip_dscp_rewrite, OID_AUTO, enabled, CTLFLAG_RW,
60 60
61 61 static struct in_addr rewrite_addresses[64];
62 62
  63 +#if __FreeBSD_version < 800000
63 64 static int
64 65 inet_aton(const char *cp, struct in_addr *addr)
65 66 {
@@ -105,6 +106,7 @@ inet_aton(const char *cp, struct in_addr *addr)
105 106 octets[2] << 8 | octets[3]);
106 107 return (0);
107 108 }
  109 +#endif
108 110
109 111 static int
110 112 rewrite_sysctl_handler(SYSCTL_HANDLER_ARGS)

0 comments on commit 4ff6cc4

Please sign in to comment.
Something went wrong with that request. Please try again.