diff --git a/example/simple/Makefile.am b/example/simple/Makefile.am index 326c6f6..89e7f0b 100644 --- a/example/simple/Makefile.am +++ b/example/simple/Makefile.am @@ -10,7 +10,7 @@ noinst_PROGRAMS = ssh2 \ sftp_RW_nonblock \ sftpdir sftpdir_nonblock -INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src +INCLUDES = -I$(top_srcdir)/include LDADD = $(top_builddir)/src/libssh2.la ssh2_SOURCES = ssh2.c diff --git a/example/simple/scp.c b/example/simple/scp.c index cedacb2..00c13a5 100644 --- a/example/simple/scp.c +++ b/example/simple/scp.c @@ -1,11 +1,11 @@ /* - * $Id: scp.c,v 1.8 2007/07/14 21:24:38 bagder Exp $ + * $Id: scp.c,v 1.9 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do a simple SCP transfer. */ +#include "config.h" #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/scp_nonblock.c b/example/simple/scp_nonblock.c index f9d98d8..764f709 100644 --- a/example/simple/scp_nonblock.c +++ b/example/simple/scp_nonblock.c @@ -1,11 +1,11 @@ /* - * $Id: scp_nonblock.c,v 1.7 2007/07/14 21:24:38 bagder Exp $ + * $Id: scp_nonblock.c,v 1.8 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SCP transfers in a non-blocking manner. */ +#include "config.h" #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/scp_write.c b/example/simple/scp_write.c index 61c401b..8483d1f 100644 --- a/example/simple/scp_write.c +++ b/example/simple/scp_write.c @@ -1,11 +1,11 @@ /* - * $Id: scp_write.c,v 1.3 2007/07/14 21:24:38 bagder Exp $ + * $Id: scp_write.c,v 1.4 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do a simple SCP transfer. */ +#include "config.h" #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/scp_write_nonblock.c b/example/simple/scp_write_nonblock.c index 87ea21b..e66c63d 100644 --- a/example/simple/scp_write_nonblock.c +++ b/example/simple/scp_write_nonblock.c @@ -1,11 +1,12 @@ /* - * $Id: scp_write_nonblock.c,v 1.5 2007/07/14 21:24:38 bagder Exp $ + * $Id: scp_write_nonblock.c,v 1.6 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do a simple SCP transfer. */ +#include "config.h" + #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp.c b/example/simple/sftp.c index 7854a60..7b45824 100644 --- a/example/simple/sftp.c +++ b/example/simple/sftp.c @@ -1,5 +1,5 @@ /* - * $Id: sftp.c,v 1.11 2007/07/22 02:15:31 gknauf Exp $ + * $Id: sftp.c,v 1.12 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP transfers. * @@ -9,9 +9,9 @@ * "sftp 192.168.0.1 user password /tmp/secrets -p|-i|-k" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp_RW_nonblock.c b/example/simple/sftp_RW_nonblock.c index e7cf6b7..85c6fee 100644 --- a/example/simple/sftp_RW_nonblock.c +++ b/example/simple/sftp_RW_nonblock.c @@ -1,5 +1,5 @@ /* - * $Id: sftp_RW_nonblock.c,v 1.8 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftp_RW_nonblock.c,v 1.9 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP transfers in a non-blocking manner. * @@ -9,9 +9,9 @@ * Using the SFTP server running on 127.0.0.1 */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp_mkdir.c b/example/simple/sftp_mkdir.c index 2cff47e..812263b 100644 --- a/example/simple/sftp_mkdir.c +++ b/example/simple/sftp_mkdir.c @@ -1,5 +1,5 @@ /* - * $Id: sftp_mkdir.c,v 1.5 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftp_mkdir.c,v 1.6 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP mkdir * @@ -9,9 +9,9 @@ * "sftp 192.168.0.1 user password /tmp/sftp_mkdir" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp_mkdir_nonblock.c b/example/simple/sftp_mkdir_nonblock.c index d35860a..f6bd862 100644 --- a/example/simple/sftp_mkdir_nonblock.c +++ b/example/simple/sftp_mkdir_nonblock.c @@ -1,5 +1,5 @@ /* - * $Id: sftp_mkdir_nonblock.c,v 1.7 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftp_mkdir_nonblock.c,v 1.8 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP non-blocking mkdir. * @@ -9,9 +9,9 @@ * "sftp 192.168.0.1 user password /tmp/sftp_write_nonblock.c" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp_nonblock.c b/example/simple/sftp_nonblock.c index ce77933..8834b23 100644 --- a/example/simple/sftp_nonblock.c +++ b/example/simple/sftp_nonblock.c @@ -1,5 +1,5 @@ /* - * $Id: sftp_nonblock.c,v 1.11 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftp_nonblock.c,v 1.12 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP non-blocking transfers. * @@ -9,9 +9,9 @@ * "sftp 192.168.0.1 user password /tmp/secrets" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp_write.c b/example/simple/sftp_write.c index f7c29fc..5d80159 100644 --- a/example/simple/sftp_write.c +++ b/example/simple/sftp_write.c @@ -1,5 +1,5 @@ /* - * $Id: sftp_write.c,v 1.6 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftp_write.c,v 1.7 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP write transfers. * @@ -9,9 +9,9 @@ * "sftp 192.168.0.1 user password sftp_write.c /tmp/secrets" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftp_write_nonblock.c b/example/simple/sftp_write_nonblock.c index 1c12c42..f9491b6 100644 --- a/example/simple/sftp_write_nonblock.c +++ b/example/simple/sftp_write_nonblock.c @@ -1,5 +1,5 @@ /* - * $Id: sftp_write_nonblock.c,v 1.8 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftp_write_nonblock.c,v 1.9 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SFTP non-blocking write transfers. * @@ -9,9 +9,9 @@ * "sftp 192.168.0.1 user password sftp_write_nonblock.c /tmp/sftp_write_nonblock.c" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftpdir.c b/example/simple/sftpdir.c index 8b85c6f..7c03c43 100644 --- a/example/simple/sftpdir.c +++ b/example/simple/sftpdir.c @@ -1,5 +1,5 @@ /* - * $Id: sftpdir.c,v 1.7 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftpdir.c,v 1.8 2007/07/31 11:00:29 bagder Exp $ * * Sample doing an SFTP directory listing. * @@ -9,9 +9,9 @@ * "sftpdir 192.168.0.1 user password /tmp/secretdir" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/sftpdir_nonblock.c b/example/simple/sftpdir_nonblock.c index e175abd..bdb484b 100644 --- a/example/simple/sftpdir_nonblock.c +++ b/example/simple/sftpdir_nonblock.c @@ -1,5 +1,5 @@ /* - * $Id: sftpdir_nonblock.c,v 1.8 2007/07/14 21:24:38 bagder Exp $ + * $Id: sftpdir_nonblock.c,v 1.9 2007/07/31 11:00:29 bagder Exp $ * * Sample doing an SFTP directory listing. * @@ -9,9 +9,9 @@ * "sftpdir 192.168.0.1 user password /tmp/secretdir" */ +#include "config.h" #include #include -#include #ifdef HAVE_WINSOCK2_H # include diff --git a/example/simple/ssh2.c b/example/simple/ssh2.c index 7690c54..420a4f6 100644 --- a/example/simple/ssh2.c +++ b/example/simple/ssh2.c @@ -1,5 +1,5 @@ /* - * $Id: ssh2.c,v 1.14 2007/07/20 09:51:05 gknauf Exp $ + * $Id: ssh2.c,v 1.15 2007/07/31 11:00:29 bagder Exp $ * * Sample showing how to do SSH2 connect. * @@ -9,7 +9,7 @@ * "ssh2 host user password [-p|-i|-k]" */ -#include +#include "config.h" #include #include