mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	changed to configure defines to control inclusion of headers from libssh2_config.h.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * $Id: sftp.c,v 1.5 2007/04/22 13:10:48 jehousley Exp $
 | 
			
		||||
 * $Id: sftp.c,v 1.6 2007/04/26 22:59:29 gknauf Exp $
 | 
			
		||||
 *
 | 
			
		||||
 * Sample showing how to do SFTP transfers.
 | 
			
		||||
 *
 | 
			
		||||
@@ -12,16 +12,24 @@
 | 
			
		||||
#include <libssh2.h>
 | 
			
		||||
#include <libssh2_sftp.h>
 | 
			
		||||
 | 
			
		||||
#ifndef WIN32
 | 
			
		||||
# include <netinet/in.h>
 | 
			
		||||
# include <sys/socket.h>
 | 
			
		||||
# include <unistd.h>
 | 
			
		||||
# include <arpa/inet.h>
 | 
			
		||||
#else
 | 
			
		||||
#ifdef HAVE_WINSOCK2_H
 | 
			
		||||
# include <winsock2.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_NETINET_IN_H
 | 
			
		||||
# include <netinet/in.h>
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef HAVE_SYS_SOCKET_H
 | 
			
		||||
# include <sys/socket.h>
 | 
			
		||||
#endif
 | 
			
		||||
# ifdef HAVE_UNISTD_H
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef HAVE_ARPA_INET_H
 | 
			
		||||
# include <arpa/inet.h>
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef HAVE_SYS_TIME_H
 | 
			
		||||
# include <sys/time.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <sys/types.h>
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user