sjaehn / BOops

Sound glitch effect sequencer LV2 plugin
GNU General Public License v3.0
73 stars 2 forks source link

[musl] fix build #21

Closed biopsin closed 3 years ago

biopsin commented 3 years ago

Need to include limits.h else

Build BOops.lv2 GUI...../../src/BWidgets/FileChooser.cpp: In member function 'void BWidgets::FileChooser::setPath(const string&)':
../../src/BWidgets/FileChooser.cpp:225:12: error: 'PATH_MAX' was not declared in this scope
  225 |   char buf[PATH_MAX];
      |            ^~~~~~~~
../../src/BWidgets/FileChooser.cpp:226:37: error: 'buf' was not declared in this scope
  226 |   char *rp = realpath(path.c_str(), buf);
      |                                     ^~~
../../src/BWidgets/FileChooser.cpp: In static member function 'static void BWidgets::FileChooser::okButtonClickedCallback(BEvents::Event*)':
../../src/BWidgets/FileChooser.cpp:610:16: error: 'PATH_MAX' was not declared in this scope
  610 |       char buf[PATH_MAX];
      |                ^~~~~~~~
../../src/BWidgets/FileChooser.cpp:611:48: error: 'buf' was not declared in this scope
  611 |           char *rp = realpath(newPath.c_str(), buf);
      |                                                ^~~
make: *** [makefile:138: BOopsGUI.so] Error 1

tested x86_64-musl

sjaehn commented 3 years ago

Thanks.