On Sun, Dec 9, 2012 at 11:57 AM, John David Anglin
wrote:
>
> #ifndef HAVE_GETEXECNAME
> +#if defined(__hpux) && (defined(__ia64) || defined(_LP64))
> +#include
> +#define getexecname getexecname_hpux
> +
> +static char *
> +getexecname_hpux (void)
> +{
> + struct load_module_desc desc;
> +
> +
The getexecname function is not availble on HP-UX. This patch provides
an alternative techique to obtain the executable path on HP-UX ELF targets.
These have the dlget and dlgetname calls. I believe that this requires
the dld.sl library be linked with the application which is the normal
case.
Wi