1
1

fix hotn?, strcasecmp and timeval isn't defined error

by including arpa/inet.h, strings.h and sys/timer.h

Part of #935.

Change-Id: Ibac8d3a992457f2a7cc10f74b144e3ebe69976d8
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
(cherry picked from commit b9aa6cef43b338666a72bf6425fc88ed7602bce5)
Signed-off-by: Bruce A. Mah <bmah@es.net>
Этот коммит содержится в:
Xiang Xiao 2019-11-16 23:25:37 +08:00 коммит произвёл Bruce A. Mah
родитель 0eb370de2e
Коммит 666040bd79
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4984910A8CAAEE8A
5 изменённых файлов: 6 добавлений и 0 удалений

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

@ -27,6 +27,7 @@
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <inttypes.h>

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

@ -29,6 +29,7 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>

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

@ -30,6 +30,7 @@
#include <errno.h>
#include <unistd.h>
#include <assert.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>

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

@ -29,6 +29,7 @@
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>

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

@ -31,6 +31,8 @@
#define __TIMER_H
#include <time.h>
#include <sys/time.h>
#include "iperf_time.h"
/* TimerClientData is an opaque value that tags along with a timer. The