summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librpc/ndr/ndr.c (renamed from source4/librpc/ndr/ndr.c)3
-rw-r--r--source3/Makefile.in2
-rw-r--r--source4/librpc/config.mk2
3 files changed, 4 insertions, 3 deletions
diff --git a/source4/librpc/ndr/ndr.c b/librpc/ndr/ndr.c
index e8daa99e15..2f1daeaeb5 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/librpc/ndr/ndr.c
@@ -29,8 +29,9 @@
#include "includes.h"
#include "librpc/ndr/libndr.h"
#include "../lib/util/dlinklist.h"
-#include "librpc/gen_ndr/dcerpc.h"
+#if _SAMBA_BUILD_ == 4
#include "param/param.h"
+#endif
#define NDR_BASE_MARSHALL_SIZE 1024
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 1685bf141d..cc9efb3918 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -257,7 +257,7 @@ DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
$(COMPRESSION_OBJ)
LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
- librpc/ndr/ndr.o \
+ ../librpc/ndr/ndr.o \
../librpc/ndr/ndr_misc.o \
librpc/gen_ndr/ndr_misc.o \
librpc/gen_ndr/ndr_security.o \
diff --git a/source4/librpc/config.mk b/source4/librpc/config.mk
index a481b97a11..9f1d5df96f 100644
--- a/source4/librpc/config.mk
+++ b/source4/librpc/config.mk
@@ -8,7 +8,7 @@ dcerpcsrcdir = $(librpcsrcdir)/rpc
PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBTALLOC LIBSAMBA-UTIL CHARSET \
LIBSAMBA-HOSTCONFIG
-LIBNDR_OBJ_FILES = $(addprefix $(ndrsrcdir)/, ndr.o ndr_string.o) ../librpc/ndr/ndr_basic.o ../librpc/ndr/uuid.o
+LIBNDR_OBJ_FILES = $(addprefix $(ndrsrcdir)/, ndr_string.o) ../librpc/ndr/ndr_basic.o ../librpc/ndr/uuid.o ../librpc/ndr/ndr.o
$(eval $(call proto_header_template,$(ndrsrcdir)/libndr_proto.h,$(LIBNDR_OBJ_FILES:.o=.c)))