summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index cd4d2a2..51f81ea 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -830,6 +830,18 @@ HDvsnprintf(char *buf, size_t UNUSED size, const char *fmt, va_list ap)
#endif /* H5_HAVE_VSNPRINTF */
#endif /* __PUMAGON__ */
+#ifndef H5_HAVE_ALARM
+#ifdef WIN32
+unsigned int HDalarm(N) {
+ return 0;
+}
+#endif
+#else
+unsigned int HDalarm(unsigned int N) {
+ return alarm(N);
+}
+#endif
+
/*-------------------------------------------------------------------------
* Function: HDfprintf