[ewg] [PATCH 3/3][2.0] dtest, dtestx, dapltest: fix build issues with Redhat EL5.1
Davis, Arlin R
arlin.r.davis at intel.com
Wed May 21 15:07:28 PDT 2008
need include files/definitions for sleep, getpid, gettimeofday
Signed-off by: Arlin Davis ardavis at ichips.intel.com
---
test/dapltest/mdep/linux/dapl_mdep_user.h | 1 +
test/dtest/dtest.c | 3 +++
test/dtest/dtestx.c | 3 +++
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/test/dapltest/mdep/linux/dapl_mdep_user.h
b/test/dapltest/mdep/linux/dapl_mdep_user.h
index 52199d1..c39d3d6 100755
--- a/test/dapltest/mdep/linux/dapl_mdep_user.h
+++ b/test/dapltest/mdep/linux/dapl_mdep_user.h
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/times.h>
+#include <sys/time.h>
/* inet_ntoa */
#include <sys/socket.h>
diff --git a/test/dtest/dtest.c b/test/dtest/dtest.c
index 9c8ec71..095ff40 100755
--- a/test/dtest/dtest.c
+++ b/test/dtest/dtest.c
@@ -63,13 +63,16 @@
#include <endian.h>
#include <byteswap.h>
#include <netdb.h>
+#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <getopt.h>
#include <inttypes.h>
+#include <unistd.h>
#define DAPL_PROVIDER "ofa-v2-ib0"
diff --git a/test/dtest/dtestx.c b/test/dtest/dtestx.c
index 19ef788..1db60eb 100755
--- a/test/dtest/dtestx.c
+++ b/test/dtest/dtestx.c
@@ -48,12 +48,15 @@
#define DAPL_PROVIDER "ibnic0v2"
#else
#include <netdb.h>
+#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <inttypes.h>
#include <string.h>
+#include <unistd.h>
#define DAPL_PROVIDER "ofa-v2-ib0"
#define F64x "%"PRIx64""
--
1.5.2.5
More information about the ewg
mailing list