1 diff -urN libssh2-0.18.orig/example/simple/scp_nonblock.c libssh2-0.18.mingw/example/simple/scp_nonblock.c
2 --- libssh2-0.18.orig/example/simple/scp_nonblock.c 2007-09-24 13:15:45.000000000 +0100
3 +++ libssh2-0.18.mingw/example/simple/scp_nonblock.c 2008-11-10 14:22:21.000000000 +0000
5 rc = fcntl(sock, F_GETFL, 0);
6 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
10 + ioctlsocket (sock, FIONBIO, &mode);
12 #error "add support for setting the socket non-blocking here"
16 /* Create a session instance */
17 session = libssh2_session_init();
18 diff -urN libssh2-0.18.orig/example/simple/scp_write_nonblock.c libssh2-0.18.mingw/example/simple/scp_write_nonblock.c
19 --- libssh2-0.18.orig/example/simple/scp_write_nonblock.c 2007-08-12 22:39:56.000000000 +0100
20 +++ libssh2-0.18.mingw/example/simple/scp_write_nonblock.c 2008-11-10 14:22:13.000000000 +0000
22 rc = fcntl(sock, F_GETFL, 0);
23 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
27 + ioctlsocket (sock, FIONBIO, &mode);
29 #error "add support for setting the socket non-blocking here"
33 /* Create a session instance
35 diff -urN libssh2-0.18.orig/example/simple/sftpdir_nonblock.c libssh2-0.18.mingw/example/simple/sftpdir_nonblock.c
36 --- libssh2-0.18.orig/example/simple/sftpdir_nonblock.c 2007-08-12 22:39:56.000000000 +0100
37 +++ libssh2-0.18.mingw/example/simple/sftpdir_nonblock.c 2008-11-10 14:23:35.000000000 +0000
39 rc = fcntl(sock, F_GETFL, 0);
40 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
44 + ioctlsocket (sock, FIONBIO, &mode);
46 #error "add support for setting the socket non-blocking here"
50 /* Create a session instance
52 diff -urN libssh2-0.18.orig/example/simple/sftp_mkdir_nonblock.c libssh2-0.18.mingw/example/simple/sftp_mkdir_nonblock.c
53 --- libssh2-0.18.orig/example/simple/sftp_mkdir_nonblock.c 2007-08-12 22:39:56.000000000 +0100
54 +++ libssh2-0.18.mingw/example/simple/sftp_mkdir_nonblock.c 2008-11-10 14:23:03.000000000 +0000
56 rc = fcntl(sock, F_GETFL, 0);
57 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
61 + ioctlsocket (sock, FIONBIO, &mode);
63 #error "add support for setting the socket non-blocking here"
67 /* Create a session instance
69 diff -urN libssh2-0.18.orig/example/simple/sftp_nonblock.c libssh2-0.18.mingw/example/simple/sftp_nonblock.c
70 --- libssh2-0.18.orig/example/simple/sftp_nonblock.c 2007-08-12 22:39:56.000000000 +0100
71 +++ libssh2-0.18.mingw/example/simple/sftp_nonblock.c 2008-11-10 14:22:30.000000000 +0000
73 rc = fcntl(sock, F_GETFL, 0);
74 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
78 + ioctlsocket (sock, FIONBIO, &mode);
80 #error "add support for setting the socket non-blocking here"
84 /* Create a session instance */
85 session = libssh2_session_init();
86 diff -urN libssh2-0.18.orig/example/simple/sftp_RW_nonblock.c libssh2-0.18.mingw/example/simple/sftp_RW_nonblock.c
87 --- libssh2-0.18.orig/example/simple/sftp_RW_nonblock.c 2007-08-12 22:39:56.000000000 +0100
88 +++ libssh2-0.18.mingw/example/simple/sftp_RW_nonblock.c 2008-11-10 14:23:18.000000000 +0000
90 rc = fcntl(sock, F_GETFL, 0);
91 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
95 + ioctlsocket (sock, FIONBIO, &mode);
97 #error "add support for setting the socket non-blocking here"
101 /* Create a session instance
103 diff -urN libssh2-0.18.orig/example/simple/sftp_write_nonblock.c libssh2-0.18.mingw/example/simple/sftp_write_nonblock.c
104 --- libssh2-0.18.orig/example/simple/sftp_write_nonblock.c 2007-08-12 22:39:56.000000000 +0100
105 +++ libssh2-0.18.mingw/example/simple/sftp_write_nonblock.c 2008-11-10 14:22:44.000000000 +0000
107 rc = fcntl(sock, F_GETFL, 0);
108 fcntl(sock, F_SETFL, rc | O_NONBLOCK);
112 + ioctlsocket (sock, FIONBIO, &mode);
114 #error "add support for setting the socket non-blocking here"
118 /* Create a session instance