summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-01-08 15:31:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:03 -0500
commitcc589241794088a51838aef3e62a3a0477041e27 (patch)
treea0bcbed3b6e0120792dfb5358a3deb45779d21dc
parent92e85d325f88d4a02ff05d02000e7e3df8ab0e6e (diff)
downloadsamba-cc589241794088a51838aef3e62a3a0477041e27.tar.gz
samba-cc589241794088a51838aef3e62a3a0477041e27.tar.bz2
samba-cc589241794088a51838aef3e62a3a0477041e27.zip
r12771: Apply patch from bug 3374, attempt to fix build on tru64.
Thanks to "The Written Word" -- whoever that is :-) Volker (This used to be commit 7d0956f0bd28728fbb8b4c24c4ed3cdcc04e2daf)
-rw-r--r--source3/include/includes.h1
-rw-r--r--source3/nsswitch/winbind_nss_config.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 80fc3feed9..f704fcb687 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -565,6 +565,7 @@ typedef int VOLATILE SIG_ATOMIC_T;
#endif
#ifndef HAVE_SOCKLEN_T_TYPE
+#define HAVE_SOCKLEN_T_TYPE
typedef int socklen_t;
#endif
diff --git a/source3/nsswitch/winbind_nss_config.h b/source3/nsswitch/winbind_nss_config.h
index 77d1dbe26e..a3243b99e3 100644
--- a/source3/nsswitch/winbind_nss_config.h
+++ b/source3/nsswitch/winbind_nss_config.h
@@ -139,4 +139,8 @@ typedef int BOOL;
#define S_ISSOCK(mode) ((mode & S_IFSOCK) == S_IFSOCK)
#endif
+#ifndef HAVE_SOCKLEN_T_TYPE
+typedef int socklen_t;
+#endif
+
#endif