[svn-r919] added a check to see if we need to or a _O_BINARY flag to the flag list for the

open function
This commit is contained in:
Patrick Lu 1998-11-17 13:16:52 -05:00
parent 519903b556
commit fbedc4bfeb

View File

@ -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()