summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/vfd_swmr_common.h')
-rw-r--r--test/vfd_swmr_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/vfd_swmr_common.h b/test/vfd_swmr_common.h
index a4bf50e..86f5f45 100644
--- a/test/vfd_swmr_common.h
+++ b/test/vfd_swmr_common.h
@@ -19,6 +19,7 @@
/***********/
#include <stdarg.h>
+#include <unistd.h> /* For demo */
#include "h5test.h"
/**********/
@@ -35,6 +36,11 @@
/* The message sent by writer that the file open is done--releasing the file lock */
#define VFD_SWMR_WRITER_MESSAGE "VFD_SWMR_WRITER_MESSAGE"
+/* For demo */
+#ifndef __arraycount
+#define __arraycount(__a) (sizeof(__a) / sizeof((__a)[0]))
+#endif
+
/************/
/* Typedefs */
/************/
@@ -88,6 +94,9 @@ H5TEST_DLL void esnprintf(char *, size_t, const char *, ...)
H5TEST_DLL int fetch_env_ulong(const char *, unsigned long, unsigned long *);
+/* For demo */
+H5TEST_DLL size_t strlcpy(char *, const char *, size_t);
+
#ifdef __cplusplus
}
#endif