From efe67458c17ffa52b48f979505caf11c2ac52c4e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 13 Dec 2005 19:38:12 +0000 Subject: r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers in build/smb_build/, remove unused pstring macros (This used to be commit 432296207400636dd81d0929ec7b1b4cebbcaa62) --- source4/lib/com/dcom/dcom.h | 2 ++ source4/lib/com/tables.c | 1 + source4/lib/replace/README | 4 ++++ source4/lib/replace/replace.h | 4 ++++ source4/lib/util_str.c | 1 - 5 files changed, 11 insertions(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/com/dcom/dcom.h b/source4/lib/com/dcom/dcom.h index 1e15daf830..41b155248e 100644 --- a/source4/lib/com/dcom/dcom.h +++ b/source4/lib/com/dcom/dcom.h @@ -21,6 +21,8 @@ #ifndef _DCOM_H /* _DCOM_H */ #define _DCOM_H +#include "lib/com/com.h" + struct dcom_client_context { struct cli_credentials *credentials; struct dcom_object_exporter { diff --git a/source4/lib/com/tables.c b/source4/lib/com/tables.c index 39bd6a6bd7..661f5d0b37 100644 --- a/source4/lib/com/tables.c +++ b/source4/lib/com/tables.c @@ -20,6 +20,7 @@ #include "includes.h" #include "dlinklist.h" +#include "lib/com/com.h" /* Specific implementation of one or more interfaces */ struct com_class diff --git a/source4/lib/replace/README b/source4/lib/replace/README index 45c8bccf13..1e804d50e1 100644 --- a/source4/lib/replace/README +++ b/source4/lib/replace/README @@ -56,6 +56,10 @@ uint_t uint{8,16,32,64}_t int{8,16,32,64}_t +Constants: +PATH_NAME_MAX +UINT16_MAX + Prerequisites: memset (for bzero) syslog (for vsyslog) diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index e3eef56eeb..fda494a444 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -166,4 +166,8 @@ int rep_mkstemp(char *temp); #define HOST_NAME_MAX 64 #endif +#ifndef UINT16_MAX +#define UINT16_MAX 65535 +#endif + #endif diff --git a/source4/lib/util_str.c b/source4/lib/util_str.c index e1fa19aa0b..56a1345e38 100644 --- a/source4/lib/util_str.c +++ b/source4/lib/util_str.c @@ -1110,4 +1110,3 @@ char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib) return ret; } - -- cgit