23 Jul
2010
23 Jul
'10
10:55 p.m.
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