_( "VLC could not open the file \"%s\". (%m)" ), path );
return -1;
}
-
-#if defined( HAVE_FCNTL )
- fcntl( fd, F_SETFD, fcntl( fd, F_GETFD ) | FD_CLOEXEC );
-
- /* We'd rather use any available memory for reading ahead
- * than for caching what we've already seen/heard */
-# if defined( F_RDAHEAD )
+#ifdef F_RDAHEAD
fcntl( fd, F_RDAHEAD, 1 );
-# endif
-# if defined( F_NOCACHE )
- fcntl( fd, F_NOCACHE, 1 );
-# endif
#endif
-
+#ifdef F_NOCACHE
+ fcntl( fd, F_NOCACHE, 0 );
+#endif
return fd;
}