From bac4cf8e92b8cd033c40160bde0f2b27fa648a5c Mon Sep 17 00:00:00 2001
From: Allen Byrne <byrn@hdfgroup.org>
Date: Mon, 1 Aug 2016 12:38:34 -0500
Subject: [svn-r30238] Follow-on to HDFFV-9928: remove unconditional call of
 time.h type headers. Also remove duplicated includes when h5private.h is
 used.

---
 hl/test/gen_test_ld.c | 4 ----
 test/dt_arith.c       | 2 --
 test/dtypes.c         | 2 --
 test/gen_plist.c      | 5 -----
 test/objcopy.c        | 1 -
 test/theap.c          | 3 ---
 test/tskiplist.c      | 3 ---
 test/ttst.c           | 3 ---
 test/tunicode.c       | 4 ----
 test/unlink.c         | 1 -
 tools/h5ls/h5ls.c     | 1 -
 11 files changed, 29 deletions(-)

diff --git a/hl/test/gen_test_ld.c b/hl/test/gen_test_ld.c
index 1313d2a..cf7b321 100644
--- a/hl/test/gen_test_ld.c
+++ b/hl/test/gen_test_ld.c
@@ -1,9 +1,5 @@
 #include "hdf5.h"
 #include "H5LDprivate.h"
-#include <time.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <stdlib.h>
 
 /*
  *  WATCH.h5: file with various types of datasets for testing--                                   
diff --git a/test/dt_arith.c b/test/dt_arith.c
index e258b77..064ee69 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -20,8 +20,6 @@
  * Purpose:     Tests the data type interface (H5T)
  */
 
-#include <math.h>
-#include <time.h>
 #include "h5test.h"
 
 /* Number of elements in each random test */
diff --git a/test/dtypes.c b/test/dtypes.c
index 984b6c6..255ef8e 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -20,8 +20,6 @@
  * Purpose:     Tests the datatype interface (H5T)
  */
 
-#include <math.h>
-#include <time.h>
 #include "h5test.h"
 #include "H5srcdir.h"
 #include "H5Iprivate.h"     /* For checking that datatype id's don't leak */
diff --git a/test/gen_plist.c b/test/gen_plist.c
index b45eeeb..c617ad0 100644
--- a/test/gen_plist.c
+++ b/test/gen_plist.c
@@ -17,11 +17,6 @@
  * generate plist file
  */
 
-#include <assert.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
 #include "H5private.h"
 #include "hdf5.h"
 
diff --git a/test/objcopy.c b/test/objcopy.c
index 1c95dc7..33ba3f5 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -20,7 +20,6 @@
  * Purpose:	Test H5Ocopy().
  */
 
-#include <time.h>
 #include "h5test.h"
 #include "H5srcdir.h"
 
diff --git a/test/theap.c b/test/theap.c
index 230ec4d..2d509bf 100644
--- a/test/theap.c
+++ b/test/theap.c
@@ -31,9 +31,6 @@
        2/18/03 - Started coding
  */
 
-#include <time.h>
-#include <stdlib.h>
-
 #include "testhdf5.h"
 #include "H5HPprivate.h"
 
diff --git a/test/tskiplist.c b/test/tskiplist.c
index 62c5f8e..f413674 100644
--- a/test/tskiplist.c
+++ b/test/tskiplist.c
@@ -31,9 +31,6 @@
        11/15/04 - Started coding
  */
 
-#include <time.h>
-#include <stdlib.h>
-
 #include "testhdf5.h"
 #include "H5SLprivate.h"
 
diff --git a/test/ttst.c b/test/ttst.c
index b869b63..0c47dad 100644
--- a/test/ttst.c
+++ b/test/ttst.c
@@ -33,9 +33,6 @@
        12/9/02 - Started coding
  */
 
-#include <time.h>
-#include <stdlib.h>
-
 #include "testhdf5.h"
 #include "H5STprivate.h"
 
diff --git a/test/tunicode.c b/test/tunicode.c
index 93c00c5..68e9073 100644
--- a/test/tunicode.c
+++ b/test/tunicode.c
@@ -14,10 +14,6 @@
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
 /* Unicode test */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
 #include "testhdf5.h"
 
 #define NUM_CHARS 16
diff --git a/test/unlink.c b/test/unlink.c
index 7169365..9222596 100644
--- a/test/unlink.c
+++ b/test/unlink.c
@@ -25,7 +25,6 @@
 /* Define this macro to indicate that the testing APIs should be available */
 #define H5G_TESTING
 
-#include <time.h>
 #include "h5test.h"
 #include "H5Gpkg.h"		/* Groups				*/
 
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index 621b417..a032f08 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -24,7 +24,6 @@
  * programming environment it declares.  Other than that, h5ls only calls
  * HDF5 API functions (except for H5G_basename())
  */
-#include "hdf5.h"
 #include "H5private.h"
 #include "h5tools.h"
 #include "h5tools_utils.h"
-- 
cgit v0.12