freebsd-ports/net/openospfd/files/patch-ospfd_carp.c
Emanuel Haupt 86cd978706 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
2008-11-27 20:54:31 +00:00

22 lines
529 B
C

--- 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__) */