svn commit: samba r25129 - in branches/SAMBA_3_2_0/source: . include nsswitch

metze at samba.org metze at samba.org
Thu Sep 13 12:55:59 GMT 2007


Author: metze
Date: 2007-09-13 12:55:58 +0000 (Thu, 13 Sep 2007)
New Revision: 25129

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25129

Log:
_XOPEN_SOURCE_EXTENDED and socklen_t are always provided by libreplace

metze
Modified:
   branches/SAMBA_3_2_0/source/configure.in
   branches/SAMBA_3_2_0/source/include/includes.h
   branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h


Changeset:
Modified: branches/SAMBA_3_2_0/source/configure.in
===================================================================
--- branches/SAMBA_3_2_0/source/configure.in	2007-09-13 12:54:53 UTC (rev 25128)
+++ branches/SAMBA_3_2_0/source/configure.in	2007-09-13 12:55:58 UTC (rev 25129)
@@ -699,7 +699,6 @@
 				AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to use large file support])
 				AC_DEFINE(_ALIGNMENT_REQUIRED, 1, [Required alignment])
 				AC_DEFINE(_MAX_ALIGNMENT, 4, [Maximum alignment])
-				AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Unix 98 sources -- needed for socklen_t in getsockopt on HP/UX 11])
 				;;
       esac
       ;;
@@ -1086,19 +1085,6 @@
 fi
 
 
-AC_CACHE_CHECK([for socklen_t type],samba_cv_socklen_t, [
-    AC_TRY_COMPILE([
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-#include <sys/socket.h>],[socklen_t i = 0],
-	samba_cv_socklen_t=yes,samba_cv_socklen_t=no)])
-if test x"$samba_cv_socklen_t" = x"yes"; then
-   AC_DEFINE(HAVE_SOCKLEN_T_TYPE,1,[Whether we have the variable type socklen_t])
-fi
-
 AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [
     AC_TRY_COMPILE([
 #include <sys/types.h>

Modified: branches/SAMBA_3_2_0/source/include/includes.h
===================================================================
--- branches/SAMBA_3_2_0/source/include/includes.h	2007-09-13 12:54:53 UTC (rev 25128)
+++ branches/SAMBA_3_2_0/source/include/includes.h	2007-09-13 12:55:58 UTC (rev 25129)
@@ -303,12 +303,6 @@
 typedef int VOLATILE SIG_ATOMIC_T;
 #endif
 
-#ifndef HAVE_SOCKLEN_T_TYPE
-#define HAVE_SOCKLEN_T_TYPE
-typedef int socklen_t;
-#endif
-
-
 #ifndef uchar
 #define uchar unsigned char
 #endif

Modified: branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h
===================================================================
--- branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h	2007-09-13 12:54:53 UTC (rev 25128)
+++ branches/SAMBA_3_2_0/source/nsswitch/winbind_nss_config.h	2007-09-13 12:55:58 UTC (rev 25129)
@@ -111,9 +111,4 @@
 #define S_ISSOCK(mode)  ((mode & S_IFSOCK) == S_IFSOCK)
 #endif
 
-#ifndef HAVE_SOCKLEN_T_TYPE
-#define HAVE_SOCKLEN_T_TYPE
-typedef int socklen_t;
 #endif
-
-#endif



More information about the samba-cvs mailing list