summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kio/kio/connection.cpp4
1 files changed, 3 insertions, 1 deletions
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 <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