Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
katie_check_function(pipe2 "unistd.h")
katie_check_function(getdomainname "unistd.h")
katie_check_function(renameat2 "stdio.h")
+katie_check_function(program_invocation_short_name "errno.h")
katie_check_struct(tm tm_gmtoff "time.h")
katie_check_struct(tm tm_zone "time.h")
katie_check_struct(dirent d_type "dirent.h")
#include "qstdcontainers_p.h"
#include <stdlib.h>
+#include <errno.h>
QT_BEGIN_NAMESPACE
{
QString name = coreappdata()->application;
+#ifdef QT_HAVE_PROGRAM_INVOCATION_SHORT_NAME
+ name = QString::fromLocal8Bit(program_invocation_short_name);
+#endif
+
#ifdef QT_HAVE_GETPROGNAME
if (name.isEmpty()) {
name = QString::fromLocal8Bit(::getprogname());