You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.2 KiB
47 lines
2.2 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../net-snmp/net-snmp-5.7.1-0002-fix-enable-read-only.patch |
|
# Copyright (C) 2012 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This patch file is dual-licensed. It is available under the license the |
|
# patched project is licensed under, as long as it is an OpenSource license |
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
# of the GNU General Public License as published by the Free Software |
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
# version. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
From: Dave Shield <D.T.Shield@liverpool.ac.uk> |
|
Date: Tue, 28 Feb 2012 10:03:25 +0000 (+0000) |
|
Subject: CHANGES: BUG: 3454168: configure: Fix building with --enable-read-only |
|
X-Git-Tag: v5.7.2.pre1~81 |
|
X-Git-Url: http://net-snmp.git.sourceforge.net/git/gitweb.cgi?p=net-snmp%2Fnet-snmp;a=commitdiff_plain;h=36423e210bfb65ef121c6a66aec438c7c237d3df |
|
|
|
CHANGES: BUG: 3454168: configure: Fix building with --enable-read-only |
|
--- |
|
|
|
diff --git a/agent/mibgroup/ip-mib/ipDefaultRouterTable/ipDefaultRouterTable_interface.c b/agent/mibgroup/ip-mib/ipDefaultRouterTable/ipDefaultRouterTable_interface.c |
|
index 632dfec..40ad72b 100644 |
|
--- a/agent/mibgroup/ip-mib/ipDefaultRouterTable/ipDefaultRouterTable_interface.c |
|
+++ b/agent/mibgroup/ip-mib/ipDefaultRouterTable/ipDefaultRouterTable_interface.c |
|
@@ -232,7 +232,7 @@ _ipDefaultRouterTable_initialize_interface |
|
if (access_multiplexer->post_request) |
|
mfd_modes |= BABY_STEP_POST_REQUEST; |
|
|
|
-#ifndef NETSNMP_DISABLE_SET_SUPPORT |
|
+#if !(defined(NETSNMP_NO_WRITE_SUPPORT) || defined(NETSNMP_DISABLE_SET_SUPPORT)) |
|
/* XXX - are these actually necessary? */ |
|
if (access_multiplexer->set_values) |
|
mfd_modes |= BABY_STEP_SET_VALUES; |
|
@@ -256,7 +256,7 @@ _ipDefaultRouterTable_initialize_interface |
|
mfd_modes |= BABY_STEP_COMMIT; |
|
if (access_multiplexer->undo_commit) |
|
mfd_modes |= BABY_STEP_UNDO_COMMIT; |
|
-#endif |
|
+#endif /* NETSNMP_NO_WRITE_SUPPORT || NETSNMP_DISABLE_SET_SUPPORT */ |
|
|
|
handler = netsnmp_baby_steps_handler_get(mfd_modes); |
|
netsnmp_inject_handler(reginfo, handler);
|
|
|