mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
src: de-duplicate inttypes.h and sys/uio.h includes, inline comment
Closes #2469
This commit is contained in:
@@ -37,9 +37,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_INTTYPES_H
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
@@ -33,11 +33,6 @@
|
||||
|
||||
#include "libssh2_priv.h"
|
||||
|
||||
/* Needed for struct iovec on some platforms */
|
||||
#ifdef HAVE_SYS_UIO_H
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
#if LIBSSH2_RSA
|
||||
/* *********
|
||||
* ssh-rsa *
|
||||
|
||||
@@ -65,9 +65,8 @@
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
/* Needed for struct iovec on some platforms */
|
||||
#ifdef HAVE_SYS_UIO_H
|
||||
#include <sys/uio.h>
|
||||
#include <sys/uio.h> /* for struct iovec on some platforms */
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
@@ -38,13 +38,6 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.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 "transport.h"
|
||||
#include "channel.h"
|
||||
|
||||
@@ -36,11 +36,6 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
/* Needed for struct iovec on some platforms */
|
||||
#ifdef HAVE_SYS_UIO_H
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
#include "transport.h"
|
||||
#include "session.h"
|
||||
#include "userauth.h"
|
||||
|
||||
Reference in New Issue
Block a user