summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lib/talign.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lib/talign.c b/tools/lib/talign.c
index bb9f96e..61dc886 100644
--- a/tools/lib/talign.c
+++ b/tools/lib/talign.c
@@ -4,9 +4,10 @@
*/
#include <string.h>
#include <stdlib.h>
-#include <unistd.h> /* Required for unlink() */
+/*#include <unistd.h> *//* Required for unlink() */
#include "hdf5.h"
+#include "H5private.h"
#include "h5tools.h"
const char *fname = "talign.h5";
@@ -43,7 +44,7 @@ int main(void)
printf("%-70s", "Testing alignment in compound datatypes");
strcpy(string5, "Hi!");
- unlink(fname);
+ HDunlink(fname);
fil = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (fil < 0) {