svn commit: samba r6752 - in branches/SAMBA_4_0/source: build/m4 include include/system nsswitch

jelmer at samba.org jelmer at samba.org
Thu May 12 10:46:57 GMT 2005


Author: jelmer
Date: 2005-05-12 10:46:57 +0000 (Thu, 12 May 2005)
New Revision: 6752

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

Log:
Patch by Steven Edwards to improve portability to mingw32

Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4
   branches/SAMBA_4_0/source/include/includes.h
   branches/SAMBA_4_0/source/include/system/glob.h
   branches/SAMBA_4_0/source/include/system/network.h
   branches/SAMBA_4_0/source/include/system/passwd.h
   branches/SAMBA_4_0/source/nsswitch/winbind_nss_config.h


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4	2005-05-12 09:13:53 UTC (rev 6751)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4	2005-05-12 10:46:57 UTC (rev 6752)
@@ -60,17 +60,17 @@
 AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h)
 AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h)
 AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
-AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
+AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
 AC_CHECK_HEADERS(security/pam_modules.h security/_pam_macros.h dlfcn.h)
 AC_CHECK_HEADERS(sys/syslog.h syslog.h)
 AC_CHECK_HEADERS(stdint.h locale.h)
-AC_CHECK_HEADERS(shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS(shadow.h netdb.h netinet/in.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
 AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h)
 AC_CHECK_HEADERS(stropts.h)
 AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
 AC_CHECK_HEADERS(sys/acl.h)
+AC_CHECK_HEADERS(windows.h winsock2.h ws2tcpip.h)
 
-
 AC_TYPE_SIGNAL
 AC_TYPE_UID_T
 AC_TYPE_MODE_T

Modified: branches/SAMBA_4_0/source/include/includes.h
===================================================================
--- branches/SAMBA_4_0/source/include/includes.h	2005-05-12 09:13:53 UTC (rev 6751)
+++ branches/SAMBA_4_0/source/include/includes.h	2005-05-12 10:46:57 UTC (rev 6752)
@@ -70,6 +70,14 @@
 #include <varargs.h>
 #endif
 
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
+#endif
+
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
 /* we support ADS if we want it and have krb5 and ldap libs */
 #if defined(WITH_ADS) && defined(HAVE_KRB5) && defined(HAVE_LDAP)
 #define HAVE_ADS

Modified: branches/SAMBA_4_0/source/include/system/glob.h
===================================================================
--- branches/SAMBA_4_0/source/include/system/glob.h	2005-05-12 09:13:53 UTC (rev 6751)
+++ branches/SAMBA_4_0/source/include/system/glob.h	2005-05-12 10:46:57 UTC (rev 6752)
@@ -24,4 +24,6 @@
 #include <glob.h>
 #endif
 
+#ifdef HAVE_FNMATCH_H
 #include <fnmatch.h>
+#endif

Modified: branches/SAMBA_4_0/source/include/system/network.h
===================================================================
--- branches/SAMBA_4_0/source/include/system/network.h	2005-05-12 09:13:53 UTC (rev 6751)
+++ branches/SAMBA_4_0/source/include/system/network.h	2005-05-12 10:46:57 UTC (rev 6752)
@@ -28,9 +28,16 @@
 #include <sys/un.h>
 #endif
 
+#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
+#endif
+
+#ifdef HAVE_NETDB_H
 #include <netdb.h>
+#endif
 
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h>

Modified: branches/SAMBA_4_0/source/include/system/passwd.h
===================================================================
--- branches/SAMBA_4_0/source/include/system/passwd.h	2005-05-12 09:13:53 UTC (rev 6751)
+++ branches/SAMBA_4_0/source/include/system/passwd.h	2005-05-12 10:46:57 UTC (rev 6752)
@@ -20,8 +20,9 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#ifdef HAVE_PWD_H
 #include <pwd.h>
-
+#endif
 #ifdef HAVE_GRP_H
 #include <grp.h>
 #endif

Modified: branches/SAMBA_4_0/source/nsswitch/winbind_nss_config.h
===================================================================
--- branches/SAMBA_4_0/source/nsswitch/winbind_nss_config.h	2005-05-12 09:13:53 UTC (rev 6751)
+++ branches/SAMBA_4_0/source/nsswitch/winbind_nss_config.h	2005-05-12 10:46:57 UTC (rev 6752)
@@ -75,7 +75,10 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>
+
+#ifdef HAVE_PWD_H
 #include <pwd.h>
+#endif
 #include "nsswitch/winbind_nss.h"
 
 /* I'm trying really hard not to include anything from smb.h with the



More information about the samba-cvs mailing list