source/nsswitch/wb_common.c won't build on Tru64 UNIX

Albert Chin samba-technical at mlists.thewrittenword.com
Mon Jan 2 18:25:20 GMT 2006


On Mon, Jan 02, 2006 at 11:00:47AM -0600, Albert Chin wrote:
> Tru64 UNIX 4.0D and 5.1 don't define socklen_t. Therefore
> source/nsswitch/wb_common.c won't build because it assumes socklen_t
> exists.

How about the attached patch?

-- 
albert chin (china at thewrittenword.com)
-------------- next part --------------
Index: source/include/includes.h
===================================================================
--- source/include/includes.h.orig	2005-12-02 13:21:50.000000000 -0600
+++ source/include/includes.h	2006-01-02 11:15:01.485596000 -0600
@@ -565,6 +573,7 @@
 #endif
 
 #ifndef HAVE_SOCKLEN_T_TYPE
+#define HAVE_SOCKLEN_T_TYPE
 typedef int socklen_t;
 #endif
 
Index: source/nsswitch/winbind_nss_config.h
===================================================================
--- source/nsswitch/winbind_nss_config.h.orig	2005-02-25 11:59:30.000000000 -0600
+++ source/nsswitch/winbind_nss_config.h	2006-01-02 11:06:41.064746000 -0600
@@ -139,4 +139,8 @@
 #define S_ISSOCK(mode)  ((mode & S_IFSOCK) == S_IFSOCK)
 #endif
 
+#ifndef HAVE_SOCKLEN_T_TYPE
+typedef int socklen_t;
+#endif
+
 #endif


More information about the samba-technical mailing list