diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-01 10:30:34 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-11-01 10:30:34 +0000 |
commit | f199c6093976d2dab7bb106469ecd8591fb626b0 (patch) | |
tree | 4a8323cf123e240e178d2ba10e3343ebea5fef7e /source/librpc/rpc | |
parent | a02259e5336038e4d3bbc1c4da7e9e4a65d66640 (diff) | |
download | samba-f199c6093976d2dab7bb106469ecd8591fb626b0.tar.gz samba-f199c6093976d2dab7bb106469ecd8591fb626b0.tar.xz samba-f199c6093976d2dab7bb106469ecd8591fb626b0.zip |
r3428: switched to using minimal includes for the auto-generated RPC code.
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.
This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
Diffstat (limited to 'source/librpc/rpc')
-rw-r--r-- | source/librpc/rpc/dcerpc.c | 1 | ||||
-rw-r--r-- | source/librpc/rpc/dcerpc_schannel.c | 1 | ||||
-rw-r--r-- | source/librpc/rpc/dcerpc_sock.c | 1 | ||||
-rw-r--r-- | source/librpc/rpc/dcerpc_util.c | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/source/librpc/rpc/dcerpc.c b/source/librpc/rpc/dcerpc.c index 0375382ea6c..2ba7c4fff3e 100644 --- a/source/librpc/rpc/dcerpc.c +++ b/source/librpc/rpc/dcerpc.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_epmapper.h" /* initialise a dcerpc pipe. */ struct dcerpc_pipe *dcerpc_pipe_init(void) diff --git a/source/librpc/rpc/dcerpc_schannel.c b/source/librpc/rpc/dcerpc_schannel.c index b7eac60dbcd..d6fc7ad5116 100644 --- a/source/librpc/rpc/dcerpc_schannel.c +++ b/source/librpc/rpc/dcerpc_schannel.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_schannel.h" enum schannel_position { DCERPC_SCHANNEL_STATE_START = 0, diff --git a/source/librpc/rpc/dcerpc_sock.c b/source/librpc/rpc/dcerpc_sock.c index e1dca6a6d9f..11d016d8819 100644 --- a/source/librpc/rpc/dcerpc_sock.c +++ b/source/librpc/rpc/dcerpc_sock.c @@ -22,6 +22,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/ndr_epmapper.h" #define MIN_HDR_SIZE 16 diff --git a/source/librpc/rpc/dcerpc_util.c b/source/librpc/rpc/dcerpc_util.c index 4126dd9aa6e..c484a2618c1 100644 --- a/source/librpc/rpc/dcerpc_util.c +++ b/source/librpc/rpc/dcerpc_util.c @@ -22,7 +22,7 @@ */ #include "includes.h" - +#include "librpc/gen_ndr/ndr_epmapper.h" /* find the pipe name for a local IDL interface |