[libssh2] [PATCH 0/5] libssh2: Enable cross-compilation from Linux to Windows using MinGW

2008-11-10 Thread Richard W.M. Jones
These five patches enable libssh2 to be cross-compiled from a Fedora Linux system to Windows using Fedora's new MinGW cross-compiler: https://fedoraproject.org/wiki/MinGW After applying these patches, you can cross-compile from a Fedora system using: autoreconf mingw32-configure --enable-sha

[libssh2] [PATCH 1/5] libssh2: get libtool to build a Windows shared library

2008-11-10 Thread Richard W.M. Jones
Need to add 'AC_LIBTOOL_WIN32_DLL' _before_ 'AC_PROG_LIBTOOL' to persuade libtool that it is safe to build a Windows DLL. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 68 O

Re: [libssh2] [PATCH 0/5] libssh2: Enable cross-compilation from Linux to Windows using MinGW

2008-11-10 Thread Peter Stuge
Richard W.M. Jones wrote: > These five patches enable libssh2 to be cross-compiled from a > Fedora Linux system to Windows using Fedora's new MinGW > cross-compiler: They look fine. I would also like them to get committed. Acked-by: Peter Stuge <[EMAIL PROTECTED]> ---

[libssh2] [PATCH 3/5] libssh2: Remove the unnecessary extra example/simple/config.h file

2008-11-10 Thread Richard W.M. Jones
The example/simple/config.h{,in} header file isn't needed, it duplicates what is already in libssh2_config.h, it breaks autoheader, and it isn't rebuilt correctly when configure.ac changes. This patch removes the file completely. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://e

[libssh2] [PATCH 5/5] libssh2: Remove WINSOCK_VERSION macro

2008-11-10 Thread Richard W.M. Jones
The WINSOCK_VERSION macro is defined centrally and passed to all instances of WSAStartup. However for the example programs the version of winsock declared isn't very important (as long as it's >= 2.0) and it's not likely you'd ever want to change it. Because this complicates cross-compiling vs.

Re: [libssh2] [PATCH 5/5] libssh2: Remove WINSOCK_VERSION macro

2008-11-10 Thread Daniel Stenberg
On Mon, 10 Nov 2008, Richard W.M. Jones wrote: > The WINSOCK_VERSION macro is defined centrally and passed to all instances > of WSAStartup. However for the example programs the version of winsock > declared isn't very important (as long as it's >= 2.0) and it's not likely > you'd ever want to

[libssh2] [PATCH 4/5] libssh2: implement non-blocking sockets for Windows in the examples

2008-11-10 Thread Richard W.M. Jones
This patch implements non-blocking sockets for Windows in the example programs, meaning they can now be compiled under Windows. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitorin

[libssh2] [PATCH 2/5] libssh2: headers and implementation of iovec/writev for Windows

2008-11-10 Thread Richard W.M. Jones
Currently Windows builds use a separate header file in the win32 subdirectory. This patch pulls the important bits out of that header file into the main "libssh2_priv.h" header file. The extras here are to check for and use the windows headers, and the implementation of iovec/writev. Of course

Re: [libssh2] [PATCH 5/5] libssh2: Remove WINSOCK_VERSION macro

2008-11-10 Thread Richard W.M. Jones
> I applied all parts that were successfully merged, and there was only one > part that wasn't clear to me at a quick glance how I should edit it so the > changes to "win32/libssh2_config.h" were not committed. > > Can you please give the current CVS a check and see how that patch is to be > appli

Re: [libssh2] [PATCH 0/5] libssh2: Enable cross-compilation from Linux to Windows using MinGW

2008-11-10 Thread Daniel Stenberg
labb configure: autobuild timestamp... 20081110-223629 checking host system type... (cached) i586-pc-mingw32msvc checking for style of include used by make... GNU checking for i586-mingw32msvc-gcc... i586-mingw32msvc-gcc checking for C compiler default output file name... a.exe checking whether the C compil

Re: [libssh2] [PATCH 0/5] libssh2: Enable cross-compilation from Linux to Windows using MinGW

2008-11-10 Thread Peter Stuge
Daniel Stenberg wrote: > Unfortunately I can't say the same about doing the build with the > Debian mingw compiler. .. > i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I../../include -I../src > -I/home/dast/src/win32/include -Os -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 > -I/usr/include -MT channel.lo -

Re: [libssh2] [PATCH 0/5] libssh2: Enable cross-compilation from Linux to Windows using MinGW

2008-11-10 Thread Dan Fandrich
On Mon, Nov 10, 2008 at 11:08:30PM +0100, Peter Stuge wrote: > Daniel Stenberg wrote: > > i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I../../include -I../src > > -I/home/dast/src/win32/include -Os -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 > > -I/usr/include -MT channel.lo -MD -MP -MF .deps/channel.Tpo