Add QNX-specific codepath for fill_pathname_application_path
This commit is contained in:
parent
8672b88eff
commit
39ba27848f
|
@ -24,6 +24,10 @@
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __QNX__
|
||||||
|
#include <libgen.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -242,6 +246,15 @@ void fill_pathname_application_path(char *s, size_t len)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#elif defined(__QNX__)
|
||||||
|
char *buff = malloc(len);
|
||||||
|
|
||||||
|
if(_cmdname(buff))
|
||||||
|
{
|
||||||
|
strlcpy(s, buff, len);
|
||||||
|
}
|
||||||
|
|
||||||
|
free(buff);
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
Loading…
Reference in New Issue