Created attachment 226900 [details]
This patch fixes the build on FreeBSD 13+, and adds a subset of more conservative improvements from my MIDI patch to audio/pd, in case that is easier to apply.
Just for reference, the updated PR for midi device support patch to audio/pd is on the following URL, just for reference:
just corrected the title of this PR, my apologies for the confusion that this may have caused. The title also notes that this patch adds NLS support as well, which is a pretty small change to the port overall.