summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 62c4c21..f32b9a8 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -28,8 +28,10 @@
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
+# include <limits.h>
#endif
+
/*
* If _POSIX_VERSION is defined in unistd.h then this system is Posix.1
* compliant. Otherwise all bets are off.
@@ -434,7 +436,11 @@ int HDfprintf (FILE *stream, const char *fmt, ...);
#define HDmkfifo(S,M) mkfifo(S,M)
#define HDmktime(T) mktime(T)
#define HDmodf(X,Y) modf(X,Y)
+#ifdef HAVE__O_BINARY
+#define HDopen(S,F,M) open(S,F|_O_BINARY,M)
+#else
#define HDopen(S,F,M) open(S,F,M)
+#endif
#define HDopendir(S) opendir(S)
#define HDpathconf(S,N) pathconf(S,N)
#define HDpause() pause()