]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix build on systems without RTM_OLD* 166/head
authorBen Kaduk <kaduk@mit.edu>
Thu, 3 Jul 2014 14:42:21 +0000 (10:42 -0400)
committerBen Kaduk <kaduk@mit.edu>
Thu, 3 Jul 2014 14:42:21 +0000 (10:42 -0400)
For example, FreeBSD has removed RTM_OLDADD and RTM_OLDDEL from its API
in March 2014, with the message:
Garbage collect long time obsoleted (or never used) stuff from routing API

Only attempt to define behavior for these cases if they are defined.

ticket: 7955 (new)
tags: pullup
target_version: 1.12.2

src/lib/apputils/net-server.c

index 02b10586561789ae17ed24824ea642a014af32d9..437c0371c1bb728502d48ca3db9c3839f6bd8597 100644 (file)
@@ -986,8 +986,12 @@ routing_update_needed(struct rt_msghdr *rtm)
     case RTM_NEWADDR:
     case RTM_DELADDR:
     case RTM_IFINFO:
+#ifdef RTM_OLDADD
     case RTM_OLDADD:
+#endif
+#ifdef RTM_OLDDEL
     case RTM_OLDDEL:
+#endif
         /*
          * Some flags indicate routing table updates that don't
          * indicate local address changes.  They may come from