summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index be41db4d43..c9a5e8b271 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -24,6 +24,20 @@
#ifndef NO_CONFIG_H /* for some tests */
#include "config.h"
#endif
+
+#ifdef NO_PROTO
+/* get rid of prototypes for smbwrapper */
+#define _NO_PROTO
+
+#ifdef HAVE_SYS_CDEFS_H
+#include <sys/cdefs.h>
+#ifdef __P
+#undef __P
+#define __P(x) ()
+#endif
+#endif
+#endif
+
#include "local.h"
#ifdef AIX
@@ -80,6 +94,12 @@
#include <sys/socket.h>
#endif
+#ifdef HAVE_SYS_SYSCALL_H
+#include <sys/syscall.h>
+#elif HAVE_SYSCALL_H
+#include <syscall.h>
+#endif
+
#ifdef HAVE_STRING_H
#include <string.h>
#endif
@@ -671,4 +691,7 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
#define getpass(prompt) getsmbpass((prompt))
#endif
+/* yuck, I'd like a better way of doing this */
+#define DIRP_SIZE (256 + 32)
+
#endif /* _INCLUDES_H */