  I really don't understand how the polling should work, so that
stuff if probably incorrect.  Look for comments containing XXXPOLL

  I don't know what the argument to midiintr is supposed to be
either.  I'm hoping it is a dev_t, but that's probably unlikely.
Look for a comment containing XXXINTR.

  The quad.c file and long long support might be gcc dependant.
You'll have to check this.
