diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2008-11-27 20:54:31 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2008-11-27 20:54:31 +0000 |
commit | 86cd9787064088334776af097c8b2fd2e5ec3f22 (patch) | |
tree | 7d57c9e24a6d3e72bfe293e3d3edab07b1bfc540 /net/openospfd/files/patch-ospfd_carp.c | |
parent | Update to the 20081126 snapshot of GCC 4.2.5. Mostly assorted bugfixes (diff) |
Update to 4.2
PR: 120788
Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Tested by: Doichin Dokov <root@net1.cc>
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=223467
Diffstat (limited to 'net/openospfd/files/patch-ospfd_carp.c')
-rw-r--r-- | net/openospfd/files/patch-ospfd_carp.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/openospfd/files/patch-ospfd_carp.c b/net/openospfd/files/patch-ospfd_carp.c new file mode 100644 index 000000000000..798643bf5cfc --- /dev/null +++ b/net/openospfd/files/patch-ospfd_carp.c @@ -0,0 +1,22 @@ +--- ospfd/carp.c.orig 2008-02-07 18:26:32.000000000 +0300 ++++ ospfd/carp.c 2008-02-07 18:39:58.000000000 +0300 +@@ -29,6 +29,13 @@ + #include "ospfd.h" + #include "log.h" + ++#if defined(__FreeBSD__) /* XXX: FreeBSD has no CARP demotion support */ ++ ++#warning "CARP demotion is not supported for FreeBSD." ++#warning "Demotion code is disconnected from the build." ++ ++#else ++ + struct carpgroup { + TAILQ_ENTRY(carpgroup) entry; + char *group; +@@ -179,3 +186,5 @@ + close(s); + return (res); + } ++ ++#endif /* defined(__FreeBSD__) */ |