packages/net/samba36/patches/160-add_missing_ifdef.patch
nbd 21c46423c5 samba36: remove SAMR support and save a bit more space
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-13 12:16:47 +00:00

27 lines
633 B
Diff

--- a/source3/librpc/rpc/rpc_common.c
+++ b/source3/librpc/rpc/rpc_common.c
@@ -127,9 +127,11 @@ static bool initialize_interfaces(void)
return false;
}
#endif
+#ifdef DEVELOPER
if (!smb_register_ndr_interface(&ndr_table_rpcecho)) {
return false;
}
+#endif
if (!smb_register_ndr_interface(&ndr_table_initshutdown)) {
return false;
}
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -632,7 +632,9 @@ static struct cmd_set *rpcclient_command
#ifdef DFS_SUPPORT
dfs_commands,
#endif
+#ifdef DEVELOPER
echo_commands,
+#endif
epmapper_commands,
shutdown_commands,
test_commands,