Thanks for the pointer - unfortunately it seems to be Linux only. The good news is that the main libdispatch sources now build and link on solaris when built together with my local bastardized stubbed out version of libkqueue - with a single problem in configure.ac in one of the m4 scripts for libdispatch - hope to sort that out next week. I'll try to see if I can polish things up and give you some patches for libkqueue as well. What remains now is also to get a few of the libdispatch unit tests portable as well, but I've now managed to compile, link and run over half of them with some success... :-) The bulk of the work after that will be to get libkqueue robust on solaris. Of course, there is also that little matter of testing and debugging the full solution :-)! Cheers, Joakim This email was sent from my iPhone, so it may be unusually terse. On 24 jul 2010, at 00:55, Mark Heily <mark@heily.com> wrote:
On 07/23/2010 11:11 AM, Joakim Johansson wrote:
Falling back to retrieving program name for libdispatch debug file using getexecname() for Solaris.
Also made the fallback getprogname function return a ‘const’ string to the program name to avoid warnings.
As an alternative, I solved a lot of libdispatch portability problems on Linux by using libbsd:
http://libbsd.freedesktop.org/wiki/
It includes getprogname(), fgetln(), the <sys/queue.h> macros, and arc4random().
Not sure if this has been ported to Solaris, but it might be helpful.
- Mark
_______________________________________________ libdispatch-dev mailing list libdispatch-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/libdispatch-dev