Commit dacda2a5 authored by Diego Biurrun's avatar Diego Biurrun Committed by Jean-Baptiste Kempf

build: Refactor an instance of system-specific O_BINARY-related ifdeffery

Signed-off-by: Diego Biurrun's avatarDiego Biurrun <diego@biurrun.de>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 45b27b06
......@@ -482,11 +482,7 @@ int _dvdcss_close ( dvdcss_t dvdcss )
*****************************************************************************/
static int libc_open ( dvdcss_t dvdcss, char const *psz_device )
{
#if !defined( WIN32 ) && !defined( __OS2__ )
dvdcss->i_fd = dvdcss->i_read_fd = open( psz_device, 0 );
#else
dvdcss->i_fd = dvdcss->i_read_fd = open( psz_device, O_BINARY );
#endif
dvdcss->i_fd = dvdcss->i_read_fd = open( psz_device, LIBC_OPEN_MODE );
if( dvdcss->i_fd == -1 )
{
......
......@@ -47,6 +47,9 @@ struct iovec
#if !defined(WIN32) && !defined(__OS2__)
# define DVDCSS_RAW_OPEN
# define LIBC_OPEN_MODE 0
#else
# define LIBC_OPEN_MODE O_BINARY
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment