Latest mingw64 packages.
[fedora-mingw.git] / libssh2 / libssh2-03-remove-extra-config.patch
1 diff -urN libssh2-0.18.orig/configure.in libssh2-0.18.mingw/configure.in
2 --- libssh2-0.18.orig/configure.in      2007-07-31 10:55:29.000000000 +0100
3 +++ libssh2-0.18.mingw/configure.in     2008-11-10 14:12:07.000000000 +0000
4 @@ -1,7 +1,7 @@
5  # AC_PREREQ(2.57)
6  AC_INIT(libssh2, [-], libssh2-devel@lists.sourceforge.net)
7  AC_CONFIG_SRCDIR([src])
8 -AC_CONFIG_HEADER([src/libssh2_config.h example/simple/config.h])
9 +AC_CONFIG_HEADER([src/libssh2_config.h])
10  AM_MAINTAINER_MODE
11  
12  dnl SED is needed by some of the tools
13 diff -urN libssh2-0.18.orig/example/simple/config.h.in libssh2-0.18.mingw/example/simple/config.h.in
14 --- libssh2-0.18.orig/example/simple/config.h.in        2007-07-31 11:02:51.000000000 +0100
15 +++ libssh2-0.18.mingw/example/simple/config.h.in       1970-01-01 01:00:00.000000000 +0100
16 @@ -1,172 +0,0 @@
17 -/* src/libssh2_config.h.in.  Generated from configure.in by autoheader.  */
18 -
19 -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
20 -   systems. This function is required for `alloca.c' support on those systems.
21 -   */
22 -#undef CRAY_STACKSEG_END
23 -
24 -/* Define to 1 if using `alloca.c'. */
25 -#undef C_ALLOCA
26 -
27 -/* Define to 1 if you have `alloca', as a function or macro. */
28 -#undef HAVE_ALLOCA
29 -
30 -/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
31 -   */
32 -#undef HAVE_ALLOCA_H
33 -
34 -/* Define to 1 if you have the <arpa/inet.h> header file. */
35 -#undef HAVE_ARPA_INET_H
36 -
37 -/* disabled non-blocking sockets */
38 -#undef HAVE_DISABLED_NONBLOCKING
39 -
40 -/* Define to 1 if you have the <dlfcn.h> header file. */
41 -#undef HAVE_DLFCN_H
42 -
43 -/* Define to 1 if you have the <errno.h> header file. */
44 -#undef HAVE_ERRNO_H
45 -
46 -/* Define to 1 if you have the <fcntl.h> header file. */
47 -#undef HAVE_FCNTL_H
48 -
49 -/* use FIONBIO for non-blocking sockets */
50 -#undef HAVE_FIONBIO
51 -
52 -/* Define to 1 if you have the `gettimeofday' function. */
53 -#undef HAVE_GETTIMEOFDAY
54 -
55 -/* Define to 1 if you have the <inttypes.h> header file. */
56 -#undef HAVE_INTTYPES_H
57 -
58 -/* use ioctlsocket() for non-blocking sockets */
59 -#undef HAVE_IOCTLSOCKET
60 -
61 -/* use Ioctlsocket() for non-blocking sockets */
62 -#undef HAVE_IOCTLSOCKET_CASE
63 -
64 -/* Define if you have the gcrypt library. */
65 -#undef HAVE_LIBGCRYPT
66 -
67 -/* Define to 1 if you have the <memory.h> header file. */
68 -#undef HAVE_MEMORY_H
69 -
70 -/* Define to 1 if you have the <netinet/in.h> header file. */
71 -#undef HAVE_NETINET_IN_H
72 -
73 -/* use O_NONBLOCK for non-blocking sockets */
74 -#undef HAVE_O_NONBLOCK
75 -
76 -/* Define to 1 if you have the `poll' function. */
77 -#undef HAVE_POLL
78 -
79 -/* Define to 1 if you have the `select' function. */
80 -#undef HAVE_SELECT
81 -
82 -/* use SO_NONBLOCK for non-blocking sockets */
83 -#undef HAVE_SO_NONBLOCK
84 -
85 -/* Define to 1 if you have the <stdint.h> header file. */
86 -#undef HAVE_STDINT_H
87 -
88 -/* Define to 1 if you have the <stdio.h> header file. */
89 -#undef HAVE_STDIO_H
90 -
91 -/* Define to 1 if you have the <stdlib.h> header file. */
92 -#undef HAVE_STDLIB_H
93 -
94 -/* Define to 1 if you have the <strings.h> header file. */
95 -#undef HAVE_STRINGS_H
96 -
97 -/* Define to 1 if you have the <string.h> header file. */
98 -#undef HAVE_STRING_H
99 -
100 -/* Define to 1 if you have the <sys/ioctl.h> header file. */
101 -#undef HAVE_SYS_IOCTL_H
102 -
103 -/* Define to 1 if you have the <sys/select.h> header file. */
104 -#undef HAVE_SYS_SELECT_H
105 -
106 -/* Define to 1 if you have the <sys/socket.h> header file. */
107 -#undef HAVE_SYS_SOCKET_H
108 -
109 -/* Define to 1 if you have the <sys/stat.h> header file. */
110 -#undef HAVE_SYS_STAT_H
111 -
112 -/* Define to 1 if you have the <sys/time.h> header file. */
113 -#undef HAVE_SYS_TIME_H
114 -
115 -/* Define to 1 if you have the <sys/types.h> header file. */
116 -#undef HAVE_SYS_TYPES_H
117 -
118 -/* Define to 1 if you have the <sys/uio.h> header file. */
119 -#undef HAVE_SYS_UIO_H
120 -
121 -/* Define to 1 if you have the <unistd.h> header file. */
122 -#undef HAVE_UNISTD_H
123 -
124 -/* Enable "none" cipher -- NOT RECOMMENDED */
125 -#undef LIBSSH2_CRYPT_NONE
126 -
127 -/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
128 -#undef LIBSSH2_DH_GEX_NEW
129 -
130 -/* Compile in zlib support */
131 -#undef LIBSSH2_HAVE_ZLIB
132 -
133 -/* Use libgcrypt */
134 -#undef LIBSSH2_LIBGCRYPT
135 -
136 -/* Enable "none" MAC -- NOT RECOMMENDED */
137 -#undef LIBSSH2_MAC_NONE
138 -
139 -/* Name of package */
140 -#undef PACKAGE
141 -
142 -/* Define to the address where bug reports for this package should be sent. */
143 -#undef PACKAGE_BUGREPORT
144 -
145 -/* Define to the full name of this package. */
146 -#undef PACKAGE_NAME
147 -
148 -/* Define to the full name and version of this package. */
149 -#undef PACKAGE_STRING
150 -
151 -/* Define to the one symbol short name of this package. */
152 -#undef PACKAGE_TARNAME
153 -
154 -/* Define to the version of this package. */
155 -#undef PACKAGE_VERSION
156 -
157 -/* If using the C implementation of alloca, define if you know the
158 -   direction of stack growth for your system; otherwise it will be
159 -   automatically deduced at runtime.
160 -       STACK_DIRECTION > 0 => grows toward higher addresses
161 -       STACK_DIRECTION < 0 => grows toward lower addresses
162 -       STACK_DIRECTION = 0 => direction of growth unknown */
163 -#undef STACK_DIRECTION
164 -
165 -/* Define to 1 if you have the ANSI C header files. */
166 -#undef STDC_HEADERS
167 -
168 -/* Version number of package */
169 -#undef VERSION
170 -
171 -/* Define to 1 if your processor stores words with the most significant byte
172 -   first (like Motorola and SPARC, unlike Intel and VAX). */
173 -#undef WORDS_BIGENDIAN
174 -
175 -/* Number of bits in a file offset, on hosts where this is settable. */
176 -#undef _FILE_OFFSET_BITS
177 -
178 -/* Define for large files, on AIX-style hosts. */
179 -#undef _LARGE_FILES
180 -
181 -/* Define to empty if `const' does not conform to ANSI C. */
182 -#undef const
183 -
184 -/* Define to `__inline__' or `__inline' if that's what the C compiler
185 -   calls it, or to nothing if 'inline' is not supported under any name.  */
186 -#ifndef __cplusplus
187 -#undef inline
188 -#endif
189 diff -urN libssh2-0.18.orig/example/simple/Makefile.am libssh2-0.18.mingw/example/simple/Makefile.am
190 --- libssh2-0.18.orig/example/simple/Makefile.am        2007-08-12 22:39:55.000000000 +0100
191 +++ libssh2-0.18.mingw/example/simple/Makefile.am       2008-11-10 14:13:22.000000000 +0000
192 @@ -10,6 +10,6 @@
193                 sftp_RW_nonblock \
194                 sftpdir sftpdir_nonblock
195  
196 -INCLUDES = -I. -I$(top_srcdir)/include
197 +INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include
198  LDADD = $(top_builddir)/src/libssh2.la
199  
200 diff -urN libssh2-0.18.orig/example/simple/scp.c libssh2-0.18.mingw/example/simple/scp.c
201 --- libssh2-0.18.orig/example/simple/scp.c      2007-08-12 22:39:55.000000000 +0100
202 +++ libssh2-0.18.mingw/example/simple/scp.c     2008-11-10 14:18:13.000000000 +0000
203 @@ -4,7 +4,7 @@
204   * Sample showing how to do a simple SCP transfer.
205   */
206  
207 -#include "config.h"
208 +#include "libssh2_config.h"
209  #include <libssh2.h>
210  
211  #ifdef HAVE_WINSOCK2_H
212 diff -urN libssh2-0.18.orig/example/simple/scp_nonblock.c libssh2-0.18.mingw/example/simple/scp_nonblock.c
213 --- libssh2-0.18.orig/example/simple/scp_nonblock.c     2007-09-24 13:15:45.000000000 +0100
214 +++ libssh2-0.18.mingw/example/simple/scp_nonblock.c    2008-11-10 14:22:21.000000000 +0000
215 @@ -4,7 +4,7 @@
216   * Sample showing how to do SCP transfers in a non-blocking manner.
217   */
218  
219 -#include "config.h"
220 +#include "libssh2_config.h"
221  #include <libssh2.h>
222  
223  #ifdef HAVE_WINSOCK2_H
224 diff -urN libssh2-0.18.orig/example/simple/scp_write.c libssh2-0.18.mingw/example/simple/scp_write.c
225 --- libssh2-0.18.orig/example/simple/scp_write.c        2007-08-12 22:39:56.000000000 +0100
226 +++ libssh2-0.18.mingw/example/simple/scp_write.c       2008-11-10 14:19:32.000000000 +0000
227 @@ -4,7 +4,7 @@
228   * Sample showing how to do a simple SCP transfer.
229   */
230  
231 -#include "config.h"
232 +#include "libssh2_config.h"
233  #include <libssh2.h>
234  
235  #ifdef HAVE_WINSOCK2_H
236 diff -urN libssh2-0.18.orig/example/simple/scp_write_nonblock.c libssh2-0.18.mingw/example/simple/scp_write_nonblock.c
237 --- libssh2-0.18.orig/example/simple/scp_write_nonblock.c       2007-08-12 22:39:56.000000000 +0100
238 +++ libssh2-0.18.mingw/example/simple/scp_write_nonblock.c      2008-11-10 14:22:13.000000000 +0000
239 @@ -4,7 +4,7 @@
240   * Sample showing how to do a simple SCP transfer.
241   */
242  
243 -#include "config.h"
244 +#include "libssh2_config.h"
245  
246  #include <libssh2.h>
247  
248 diff -urN libssh2-0.18.orig/example/simple/sftp.c libssh2-0.18.mingw/example/simple/sftp.c
249 --- libssh2-0.18.orig/example/simple/sftp.c     2007-09-24 13:14:18.000000000 +0100
250 +++ libssh2-0.18.mingw/example/simple/sftp.c    2008-11-10 14:15:47.000000000 +0000
251 @@ -9,7 +9,7 @@
252   * "sftp 192.168.0.1 user password /tmp/secrets -p|-i|-k"
253   */
254  
255 -#include "config.h"
256 +#include "libssh2_config.h"
257  #include <libssh2.h>
258  #include <libssh2_sftp.h>
259  
260 diff -urN libssh2-0.18.orig/example/simple/sftpdir.c libssh2-0.18.mingw/example/simple/sftpdir.c
261 --- libssh2-0.18.orig/example/simple/sftpdir.c  2007-08-12 22:39:56.000000000 +0100
262 +++ libssh2-0.18.mingw/example/simple/sftpdir.c 2008-11-10 14:18:41.000000000 +0000
263 @@ -9,7 +9,7 @@
264   * "sftpdir 192.168.0.1 user password /tmp/secretdir"
265   */
266  
267 -#include "config.h"
268 +#include "libssh2_config.h"
269  #include <libssh2.h>
270  #include <libssh2_sftp.h>
271  
272 diff -urN libssh2-0.18.orig/example/simple/sftpdir_nonblock.c libssh2-0.18.mingw/example/simple/sftpdir_nonblock.c
273 --- libssh2-0.18.orig/example/simple/sftpdir_nonblock.c 2007-08-12 22:39:56.000000000 +0100
274 +++ libssh2-0.18.mingw/example/simple/sftpdir_nonblock.c        2008-11-10 14:23:35.000000000 +0000
275 @@ -9,7 +9,7 @@
276   * "sftpdir 192.168.0.1 user password /tmp/secretdir"
277   */
278  
279 -#include "config.h"
280 +#include "libssh2_config.h"
281  #include <libssh2.h>
282  #include <libssh2_sftp.h>
283  
284 diff -urN libssh2-0.18.orig/example/simple/sftp_mkdir.c libssh2-0.18.mingw/example/simple/sftp_mkdir.c
285 --- libssh2-0.18.orig/example/simple/sftp_mkdir.c       2007-08-12 22:39:56.000000000 +0100
286 +++ libssh2-0.18.mingw/example/simple/sftp_mkdir.c      2008-11-10 14:18:33.000000000 +0000
287 @@ -9,7 +9,7 @@
288   * "sftp 192.168.0.1 user password /tmp/sftp_mkdir"
289   */
290  
291 -#include "config.h"
292 +#include "libssh2_config.h"
293  #include <libssh2.h>
294  #include <libssh2_sftp.h>
295  
296 diff -urN libssh2-0.18.orig/example/simple/sftp_mkdir_nonblock.c libssh2-0.18.mingw/example/simple/sftp_mkdir_nonblock.c
297 --- libssh2-0.18.orig/example/simple/sftp_mkdir_nonblock.c      2007-08-12 22:39:56.000000000 +0100
298 +++ libssh2-0.18.mingw/example/simple/sftp_mkdir_nonblock.c     2008-11-10 14:23:03.000000000 +0000
299 @@ -9,7 +9,7 @@
300   * "sftp 192.168.0.1 user password /tmp/sftp_write_nonblock.c"
301   */
302  
303 -#include "config.h"
304 +#include "libssh2_config.h"
305  #include <libssh2.h>
306  #include <libssh2_sftp.h>
307  
308 diff -urN libssh2-0.18.orig/example/simple/sftp_nonblock.c libssh2-0.18.mingw/example/simple/sftp_nonblock.c
309 --- libssh2-0.18.orig/example/simple/sftp_nonblock.c    2007-08-12 22:39:56.000000000 +0100
310 +++ libssh2-0.18.mingw/example/simple/sftp_nonblock.c   2008-11-10 14:22:30.000000000 +0000
311 @@ -9,7 +9,7 @@
312   * "sftp 192.168.0.1 user password /tmp/secrets"
313   */
314  
315 -#include "config.h"
316 +#include "libssh2_config.h"
317  #include <libssh2.h>
318  #include <libssh2_sftp.h>
319  
320 diff -urN libssh2-0.18.orig/example/simple/sftp_RW_nonblock.c libssh2-0.18.mingw/example/simple/sftp_RW_nonblock.c
321 --- libssh2-0.18.orig/example/simple/sftp_RW_nonblock.c 2007-08-12 22:39:56.000000000 +0100
322 +++ libssh2-0.18.mingw/example/simple/sftp_RW_nonblock.c        2008-11-10 14:23:18.000000000 +0000
323 @@ -9,7 +9,7 @@
324   * Using the SFTP server running on 127.0.0.1
325   */
326  
327 -#include "config.h"
328 +#include "libssh2_config.h"
329  #include <libssh2.h>
330  #include <libssh2_sftp.h>
331  
332 diff -urN libssh2-0.18.orig/example/simple/sftp_write.c libssh2-0.18.mingw/example/simple/sftp_write.c
333 --- libssh2-0.18.orig/example/simple/sftp_write.c       2007-08-12 22:39:56.000000000 +0100
334 +++ libssh2-0.18.mingw/example/simple/sftp_write.c      2008-11-10 14:19:09.000000000 +0000
335 @@ -9,7 +9,7 @@
336   * "sftp 192.168.0.1 user password sftp_write.c /tmp/secrets"
337   */
338  
339 -#include "config.h"
340 +#include "libssh2_config.h"
341  #include <libssh2.h>
342  #include <libssh2_sftp.h>
343  
344 diff -urN libssh2-0.18.orig/example/simple/sftp_write_nonblock.c libssh2-0.18.mingw/example/simple/sftp_write_nonblock.c
345 --- libssh2-0.18.orig/example/simple/sftp_write_nonblock.c      2007-08-12 22:39:56.000000000 +0100
346 +++ libssh2-0.18.mingw/example/simple/sftp_write_nonblock.c     2008-11-10 14:22:44.000000000 +0000
347 @@ -9,7 +9,7 @@
348   * "sftp 192.168.0.1 user password sftp_write_nonblock.c /tmp/sftp_write_nonblock.c"
349   */
350  
351 -#include "config.h"
352 +#include "libssh2_config.h"
353  #include <libssh2.h>
354  #include <libssh2_sftp.h>
355  
356 diff -urN libssh2-0.18.orig/example/simple/ssh2.c libssh2-0.18.mingw/example/simple/ssh2.c
357 --- libssh2-0.18.orig/example/simple/ssh2.c     2007-08-12 22:39:56.000000000 +0100
358 +++ libssh2-0.18.mingw/example/simple/ssh2.c    2008-11-10 14:14:32.000000000 +0000
359 @@ -9,10 +9,13 @@
360   * "ssh2 host user password [-p|-i|-k]"
361   */
362  
363 -#include "config.h"
364 +#include "libssh2_config.h"
365  #include <libssh2.h>
366  #include <libssh2_sftp.h>
367  
368 +#ifdef HAVE_WINDOWS_H
369 +# include <windows.h>
370 +#endif
371  #ifdef HAVE_WINSOCK2_H
372  # include <winsock2.h>
373  #endif