summaryrefslogtreecommitdiff
path: root/net/openospfd/files/patch-ospfd_carp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/openospfd/files/patch-ospfd_carp.c')
-rw-r--r--net/openospfd/files/patch-ospfd_carp.c22
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__) */