[28754] in CVS-changelog-for-Kerberos-V5
krb5 commit [krb5-1.11]: Fix build on systems without RTM_OLD*
daemon@ATHENA.MIT.EDU (Tom Yu)
Fri Feb 6 18:44:43 2015
Date: Fri, 6 Feb 2015 18:44:38 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201502062344.t16NicpV001169@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/e92e44604fcaa78e2bd117c51286d9c9f4367483
commit e92e44604fcaa78e2bd117c51286d9c9f4367483
Author: Ben Kaduk <kaduk@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.
(cherry picked from commit fd352d41a79013114708e99510b6be3836200237)
ticket: 8110 (new)
version_fixed: 1.11.6
status: resolved
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 3aa6fde..e13b6a5 100644
--- a/src/lib/apputils/net-server.c
+++ b/src/lib/apputils/net-server.c
@@ -1072,8 +1072,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
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5