summaryrefslogtreecommitdiff
path: root/source/ubiqx
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-06-08 19:38:57 +0000
committerChristopher R. Hertel <crh@samba.org>1998-06-08 19:38:57 +0000
commitf128fda8e6abdbd9ae661dd17684580969ef5068 (patch)
tree616456f7af8aee6b7b585d0a6c4107434e213812 /source/ubiqx
parent8c6fe8870a72271a6acd1633efc362c59e283e19 (diff)
downloadsamba-f128fda8e6abdbd9ae661dd17684580969ef5068.tar.gz
proto.h
*Not* the usual. I did make proto to add the #ifndef..#endif block. Just to be safe, I did a cvs diff and found no prototype changes. ubiqx/sys_includes.h More fudging. I want to use binary tree typdefs in nameserv.h, but nameserv.h is included in includes.h which is included by all of the ubiqx modules. The result is that the types are referenced before they are declared. My solution is to prevent nameserv.h and proto.h from being included in the ubiqx modules (where they are not needed anyway). Chris -)-----
Diffstat (limited to 'source/ubiqx')
-rw-r--r--source/ubiqx/sys_include.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/ubiqx/sys_include.h b/source/ubiqx/sys_include.h
index 95968346385..ea66d763804 100644
--- a/source/ubiqx/sys_include.h
+++ b/source/ubiqx/sys_include.h
@@ -32,7 +32,20 @@
* ========================================================================== **
*/
+#ifndef _INCLUDES_H
+
+/* Block the inclusion of some Samba headers so that ubiqx types won't be
+ * used before the headers that define them. These headers are not needed
+ * in the ubiqx modules anyway.
+ */
+#define _NAMESERV_H_
+#define _PROTO_H_
+
+/* The main Samba system-adaptive header file.
+ */
#include "../includes.h"
+#endif /* _INCLUDES_H */
+
/* ================================ The End ================================= */
#endif /* SYS_INCLUDE_H */