[hamradio-commits] [dump1090] 348/389: Only use O_BINARY on Win32
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 98c7c73d0647f7551cf98434ab7cf0009c8f91ec
Author: Oliver Jowett <oliver at mutability.co.uk>
Date: Wed Oct 1 12:17:51 2014 +0100
Only use O_BINARY on Win32
---
dump1090.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dump1090.c b/dump1090.c
index f88d03b..7a7addd 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -710,7 +710,13 @@ int main(int argc, char **argv) {
} else {
if (Modes.filename[0] == '-' && Modes.filename[1] == '\0') {
Modes.fd = STDIN_FILENO;
- } else if ((Modes.fd = open(Modes.filename, (O_RDONLY | O_BINARY))) == -1) {
+ } else if ((Modes.fd = open(Modes.filename,
+#ifdef _WIN32
+ (O_RDONLY | O_BINARY)
+#else
+ (O_RDONLY)
+#endif
+ )) == -1) {
perror("Opening data file");
exit(1);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list