ErosQ: fix panic on startup caused by ad55da5f

It turns out #include "settings.h" pulls in rbpaths.h which ends up
remapping open() to the path-mangling rockbox open().

By defining RB_FILESYSTEM_OS we prevent the remap.  My mistake for not
testing this before committing!

Change-Id: I2978eb7b413693c4cb887b7ac7b2457780db7d25
This commit is contained in:
Solomon Peachy 2021-04-08 21:56:23 -04:00
parent ad55da5f87
commit e17337c9aa

View file

@ -20,6 +20,8 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#define RB_FILESYSTEM_OS // VERY important this is before settings.h
// because that pulls in rbpaths.h which breaks open()
//#define LOGF_ENABLE //#define LOGF_ENABLE
@ -204,8 +206,7 @@ void audiohw_set_lineout_volume(int vol_l, int vol_r)
(void)vol_r; (void)vol_r;
if (lineout_inserted()) { if (lineout_inserted()) {
l = -180; l = r = global_settings.volume_limit;
r = -180;
} else { } else {
l = vol_l_hw; l = vol_l_hw;
r = vol_r_hw; r = vol_r_hw;