Ray Kohler
2010-Mar-01 03:07 UTC
[Vorbis-dev] adding directory contents to ogg123 playing in sorted order?
Would a patch to ogg123 for using scandir(3) and alphasort(3) instead of opendir(3) and readdir(3) in playlist_append_directory() be accepted, or are those not sufficiently portable? On Linux, _SVID_SOURCE or _BSD_SOURCE is required to use them. This shouldn't be hard to implement and I'd like very much to have directories added to the playlist in sorted order.
Conrad Parker
2010-Mar-01 03:24 UTC
[Vorbis-dev] adding directory contents to ogg123 playing in sorted order?
On 1 March 2010 12:07, Ray Kohler <ataraxia937 at gmail.com> wrote:> Would a patch to ogg123 for using scandir(3) and alphasort(3) instead > of opendir(3) and readdir(3) in playlist_append_directory() be > accepted, or are those not sufficiently portable? On Linux, > _SVID_SOURCE or _BSD_SOURCE is required to use them. This shouldn't be > hard to implement and I'd like very much to have directories added to > the playlist in sorted order.could you add a configure check for those functions, and if not present then fall back to the existing behaviour? Conrad.