s3-build: only include rpc_misc.h where needed.
authorGünther Deschner <gd@samba.org>
Fri, 20 Aug 2010 10:15:13 +0000 (12:15 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 25 Aug 2010 22:26:01 +0000 (00:26 +0200)
Guenther

source3/include/includes.h
source3/include/rpc_misc.h
source3/librpc/rpc/dcerpc.h
source3/rpc_server/srv_spoolss_nt.c
source3/rpc_server/srv_winreg_nt.c

index 25920881123263a312c0b4ee2ca4d2af3fac4d25..478c633d6216c1e39bf114044fa6237a217cf14c 100644 (file)
@@ -641,7 +641,6 @@ extern void *cmdline_lp_ctx;
 #include "smb.h"
 #include "nameserv.h"
 #include "../lib/util/byteorder.h"
-#include "rpc_misc.h"
 #include "mapping.h"
 #include "passdb.h"
 #include "msdfs.h"
index 08ee5defcb8915457208d1b211a882379f17dcc3..adc80167cade5f54a30dbecfae16ce57469a5eb8 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef _RPC_MISC_H /* _RPC_MISC_H */
 #define _RPC_MISC_H 
 
-#define SMB_RPC_INTERFACE_VERSION 1
-
 /********************************************************************** 
  * RPC policy handle used pretty much everywhere
  **********************************************************************/
index 3300b6e3941fc078e2bd60fa632d299186e80ce8..d064f3d6e3e21b3b0abac1da4097acc20c3b3ade 100644 (file)
@@ -26,6 +26,8 @@
 #ifndef __DCERPC_H__
 #define __DCERPC_H__
 
+#define SMB_RPC_INTERFACE_VERSION 1
+
 enum dcerpc_transport_t {
        NCA_UNKNOWN, NCACN_NP, NCACN_IP_TCP, NCACN_IP_UDP, NCACN_VNS_IPC, 
        NCACN_VNS_SPP, NCACN_AT_DSP, NCADG_AT_DDP, NCALRPC, NCACN_UNIX_STREAM, 
index 287c720c59edf9bf26f16a1ba2cb2983748948cf..5df20d4f08341523e688e74ffdbe3538c76e4f25 100644 (file)
@@ -40,6 +40,7 @@
 #include "include/printing.h"
 #include "secrets.h"
 #include "../librpc/gen_ndr/netlogon.h"
+#include "rpc_misc.h"
 
 /* macros stolen from s4 spoolss server */
 #define SPOOLSS_BUFFER_UNION(fn,info,level) \
index 198a84f2d8b7cbf56ec72405f8dfc139295e1310..de15f9f82f0728bbe78eae6d67c65b94c54aea05 100644 (file)
@@ -25,6 +25,7 @@
 #include "registry/reg_parse_prs.h"
 #include "registry.h"
 #include "registry/reg_perfcount.h"
+#include "rpc_misc.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV