TLeconte / vdlm2dec

vdl mode 2 SDR decoder
GNU General Public License v2.0
74 stars 23 forks source link

Added support for compilation under OSX #24

Closed Claudio-Sjo closed 6 years ago

Claudio-Sjo commented 6 years ago

The pthread support under OSX doesn't support pthread barrier, namely it creates a compilation error due to missing structure struct pthread_barrier. I copied a solution from the web and added to the source.

TLeconte commented 6 years ago

Thank z lot for your contribution. But I think , that your pthread_barrier emulation must not be in rtl.c. After all, some one could have the strange idea to use an airspy on OSX ... Could you propose another commit, where barrier emulation is in main.c or in its own osx.c file ?

tanks in advance