krb5 commit: Fix build on systems without RTM_OLD*
Benjamin Kaduk
kaduk at MIT.EDU
Thu Jul 3 10:44:12 EDT 2014
https://github.com/krb5/krb5/commit/fd352d41a79013114708e99510b6be3836200237
commit fd352d41a79013114708e99510b6be3836200237
Author: Ben Kaduk <kaduk at mit.edu>
Date: Thu Jul 3 10:42:21 2014 -0400
Fix build on systems without RTM_OLD*
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 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/lib/apputils/net-server.c b/src/lib/apputils/net-server.c
index 02b1058..437c037 100644
--- a/src/lib/apputils/net-server.c
+++ b/src/lib/apputils/net-server.c
@@ -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
More information about the cvs-krb5
mailing list