1
1

fix: Unbreak build on CentOS 6. (#1040)

The fix eliminates a duplicate definition of the iperf_size_t datatype
when both iperf.h and iperf_api.h are included.

Fixes #1039.
Этот коммит содержится в:
Bruce A. Mah 2020-08-14 13:25:51 -07:00 коммит произвёл GitHub
родитель e551fbcfc2
Коммит 70c85f62df
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -68,7 +68,9 @@
#include <openssl/evp.h>
#endif // HAVE_SSL
#if !defined(__IPERF_API_H)
typedef uint64_t iperf_size_t;
#endif // __IPERF_API_H
struct iperf_interval_results
{

Просмотреть файл

@ -45,7 +45,9 @@ struct iperf_interval_results;
struct iperf_stream;
struct iperf_time;
#if !defined(__IPERF_H)
typedef uint64_t iperf_size_t;
#endif // __IPERF_H
/* default settings */
#define Ptcp SOCK_STREAM