[ofa-general] [PATCH 1/1][v1.2] dtest: fix build issue with Redhat EL5.1

Arlin Davis arlin.r.davis at intel.com
Tue May 20 15:10:00 PDT 2008


need include files/definitions for sleep, getpid, gettimeofday

Signed-off by: Arlin Davis ardavis at ichips.intel.com
---
 test/dtest/dtest.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/dtest/dtest.c b/test/dtest/dtest.c
index 2db141f..039b6bf 100755
--- a/test/dtest/dtest.c
+++ b/test/dtest/dtest.c
@@ -35,13 +35,16 @@
 #include <stdlib.h>
 #include <string.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>
 
 #ifndef DAPL_PROVIDER
 #define DAPL_PROVIDER "OpenIB-cma"
-- 
1.5.2.5






More information about the general mailing list