changed to configure defines to control inclusion of headers from libssh2_config.h.

This commit is contained in:
Guenter Knauf 2007-04-12 22:20:18 +00:00
parent 159c351d05
commit f33375bc03
3 changed files with 16 additions and 6 deletions

View File

@ -36,12 +36,13 @@
*/
#include "libssh2_priv.h"
#ifndef WIN32
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <fcntl.h>
#endif
#include <fcntl.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
/*

View File

@ -36,7 +36,9 @@
*/
#include "libssh2_priv.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/* {{{ libssh2_ntohu32
*/

View File

@ -38,18 +38,25 @@
#include "libssh2_priv.h"
#include <errno.h>
#include <fcntl.h>
#ifndef WIN32
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
/* Needed for struct iovec on some platforms */
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <sys/time.h>
#include <sys/types.h>
#include <inttypes.h>
/* {{{ libssh2_packet_queue_listener
* Queue a connection request for a listener