Check HAVE_STDINT_H before trying to include <stdint.h>.

Partial fix for compilation on some Solaris versions.  Fixes #175.

Submitted by:	@marksolaris
This commit is contained in:
Bruce A. Mah 2014-05-19 10:15:36 -07:00
parent df1a7a2194
commit 426221a327
No known key found for this signature in database
GPG Key ID: 4984910A8CAAEE8A
9 changed files with 20 additions and 0 deletions

View File

@ -3,7 +3,9 @@
#include <unistd.h>
#include <string.h>
#include <sysexits.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <iperf_api.h>

View File

@ -3,7 +3,9 @@
#include <unistd.h>
#include <string.h>
#include <sysexits.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <iperf_api.h>

View File

@ -14,7 +14,9 @@
#include <sys/time.h>
#include <sys/types.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <sys/socket.h>
#include <netinet/tcp.h>

View File

@ -27,7 +27,9 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <netinet/tcp.h>
#include <sys/time.h>
#include <sys/resource.h>

View File

@ -24,7 +24,9 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <netinet/tcp.h>
#include <sys/time.h>
#include <sys/resource.h>

View File

@ -16,7 +16,9 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <sys/time.h>
#include <sys/select.h>

View File

@ -15,13 +15,17 @@
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <netinet/tcp.h>
#include "iperf.h"

View File

@ -8,7 +8,9 @@
*/
#include <assert.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <stdio.h>
#include <string.h>

View File

@ -54,7 +54,9 @@
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/tcp.h>