diff options
author | komh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-25 09:09:57 +0000 |
---|---|---|
committer | komh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-25 09:09:57 +0000 |
commit | 16d8b08089a0a99c2f6e4b667cad899d7ac1e950 (patch) | |
tree | 0a67293791b9db6105bf053305a7cbf1ae52b143 /stream | |
parent | b2e8cf6bc2996ec7116e71bec6dff9080e9eacff (diff) | |
download | mpv-16d8b08089a0a99c2f6e4b667cad899d7ac1e950.tar.bz2 mpv-16d8b08089a0a99c2f6e4b667cad899d7ac1e950.tar.xz |
Define O_BINARY if it is undefined.
This removes a platform check for open().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30727 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_cddb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c index 3a2ecf41ad..1f8d44a005 100644 --- a/stream/stream_cddb.c +++ b/stream/stream_cddb.c @@ -74,6 +74,10 @@ #include "network.h" #include "libavutil/common.h" +#ifndef O_BINARY +#define O_BINARY 0 +#endif + #define DEFAULT_FREEDB_SERVER "freedb.freedb.org" #define DEFAULT_CACHE_DIR "/.cddb/" @@ -349,11 +353,7 @@ int cddb_read_cache(cddb_data_t *cddb_data) sprintf(file_name, "%s%08lx", cddb_data->cache_dir, cddb_data->disc_id); - file_fd = open(file_name, O_RDONLY -#if defined(__MINGW32__) || defined(__CYGWIN__) - | O_BINARY -#endif - ); + file_fd = open(file_name, O_RDONLY | O_BINARY); if (file_fd < 0) { mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_MPDEMUX_CDDB_NoCacheFound); return -1; |