PortMidi / portmidi

portmidi is a cross-platform MIDI input/output library
Other
118 stars 33 forks source link

ptlinux portability fixes #54

Closed rrrapha closed 1 year ago

rrrapha commented 1 year ago

CLOCK_MONOTONIC_RAW is Linux-specific. The changes make ptlinux.c work on *BSD systems by using CLOCK_MONOTONIC if CLOCK_MONOTONIC_RAW is not defined.

(The first commit is just fixing the line endings.)

rbdannenberg commented 1 year ago

Thanks for the update. I don't know how those windows line endings got in there. I'm not sure how solid and complete PortMidi is on BSD -- if it seems completely OK (e.g. passes all tests in pm_test/README.txt) I could maybe make that clear throughout documentation.

rrrapha commented 1 year ago

I'm not sure how solid and complete PortMidi is on BSD

There is a outdated, but working port for openbsd using sndio as a backend: https://cvsweb.openbsd.org/ports/audio/portmidi/ https://sndio.org/

I will send patches for the sndio-backend soon.