diff --git a/file_path_special.c b/file_path_special.c index 349359790d..1e8f7aad09 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -24,6 +24,10 @@ #include #endif +#ifdef __QNX__ +#include +#endif + #include #include #include @@ -242,6 +246,15 @@ void fill_pathname_application_path(char *s, size_t len) return; } } +#elif defined(__QNX__) + char *buff = malloc(len); + + if(_cmdname(buff)) + { + strlcpy(s, buff, len); + } + + free(buff); #else { pid_t pid;