summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in1
-rw-r--r--source3/include/includes.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 21bad4bc78..020fe0a7c7 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -129,6 +129,7 @@
#undef HAVE_IRIX_SPECIFIC_CAPABILITIES
#undef KRB4_AUTH
#undef SEEKDIR_RETURNS_VOID
+#undef HAVE_DIRENT_D_OFF
/* The number of bytes in a int. */
#undef SIZEOF_INT
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 */