diff --git a/kio/kio/connection.cpp b/kio/kio/connection.cpp index 725a85f13..90696da4c 100644 --- a/kio/kio/connection.cpp +++ b/kio/kio/connection.cpp @@ -42,8 +42,10 @@ #include #include -#if defined(__OpenBSD__) || defined(__FreeBSD__) +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) #define __progname getprogname() +#elif defined(_GNU_SOURCE) && defined(__GLIBC__) +#define __progname program_invocation_short_name #else extern char *__progname; #endif