Patch for files/smb.c
Steven Edwards
Steven_Ed4153 at yahoo.com
Sat May 18 19:52:34 CDT 2002
Changlog: Disable part of smb support when using -DWINE_NOWINSOCK
cvs diff -u smb.c
Index: smb.c
===================================================================
RCS file: /home/wine/wine/files/smb.c,v
retrieving revision 1.4
diff -u -r1.4 smb.c
--- smb.c 5 May 2002 20:29:15 -0000 1.4
+++ smb.c 19 May 2002 00:49:09 -0000
@@ -170,6 +170,8 @@
return TRUE;
}
+#ifndef WINE_NOWINSOCK
+
static BOOL NB_Lookup(LPCSTR host, struct sockaddr_in *addr)
{
int fd,on=1,r,len,i,fromsize;
@@ -388,6 +390,8 @@
return TRUE;
}
+#endif /* WINE_NOWINSOCK */
+
#define SMB_ADDHEADER(b,l) { b[(l)++]=0xff; b[(l)++]='S'; b[(l)++]='M';
b[(l)++]='B'; }
#define SMB_ADDERRINFO(b,l) { b[(l)++]=0; b[(l)++]=0; b[(l)++]=0;
b[(l)++]=0; }
#define SMB_ADDPADSIG(b,l) { memset(&b[l],0,12); l+=12; }
@@ -869,6 +873,8 @@
return TRUE;
}
+#ifndef WINE_NOWINSOCK
+
static int SMB_GetSocket(LPCSTR host)
{
int fd=-1,r;
@@ -915,6 +921,8 @@
return fd;
}
+
+#endif /* WINE_NOWINSOCK */
static BOOL SMB_LoginAndConnect(int fd, LPCSTR host, LPCSTR share,
USHORT *tree_id, USHORT *user_id, USHORT *dialect)
{
More information about the wine-patches
mailing list