diff options
-rw-r--r-- | tdeio/tdeio/connection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tdeio/tdeio/connection.cpp b/tdeio/tdeio/connection.cpp index 9577ad534..5ae0f5685 100644 --- a/tdeio/tdeio/connection.cpp +++ b/tdeio/tdeio/connection.cpp @@ -42,8 +42,10 @@ #include <kdebug.h> #include <tqsocketnotifier.h> -#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 |