This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libbacktrace] Use getexecname() on Solaris
On Fri, Oct 5, 2012 at 4:21 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>
> I think this should work. The only complication might be that users of
> DEFAULT_PROCESS_FILENAME need to include <stdlib.h> on Solaris to get
> the declaration of getexecname(). Given that this header is already
> used unconditionally, its inclusion should probably be moved to either
> internal.h (which doesn't yet include anything) or backtrace.h. Ian,
> what do you prefer here?
Definitely not backtrace.h. I think I would prefer that print.c
simply #include <stdlib.h> directly.
Ian