$NetBSD: patch-ad,v 1.1 2006/05/06 12:45:32 joerg Exp $ --- common/utils.c.orig 2006-05-06 12:11:07.000000000 +0000 +++ common/utils.c @@ -126,11 +126,10 @@ void LOG(int severity, const char *s, .. */ void _bailout(char *file, int line) { - char *pname; - extern int errno; + const char *pname = ""; -#if defined(__NetBSD__) - pname = (char *)getprogname(); +#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) + pname = getprogname(); #elif defined(__linux__) pname = program_invocation_name; #endif