Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion loader/icd_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef _ICD_PLATFORM_H_
#define _ICD_PLATFORM_H_

#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__QNXNTO__)

#define PATH_SEPARATOR ':'
#define DIRECTORY_SYMBOL '/'
Expand Down
4 changes: 4 additions & 0 deletions loader/linux/icd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ static inline void khrIcdOsDirEnumerate(const char *path, const char *env,
break;
memcpy(nameCopy, dirEntry->d_name, sz);
dirElems[elemCount].d_name = nameCopy;
#if defined(__QNXNTO__)
dirElems[elemCount].d_type = _DEXTRA_FIRST(dirEntry)->d_type;
#else
dirElems[elemCount].d_type = dirEntry->d_type;
#endif
elemCount++;
}
qsort(dirElems, elemCount, sizeof(struct dirElem), compareDirElem);
Expand Down
2 changes: 1 addition & 1 deletion loader/linux/icd_linux_envvars.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ char *khrIcd_getenv(const char *name) {
}

char *khrIcd_secure_getenv(const char *name) {
#if defined(__APPLE__)
#if defined(__APPLE__) || defined(__QNXNTO__)
// Apple does not appear to have a secure getenv implementation.
// The main difference between secure getenv and getenv is that secure getenv
// returns NULL if the process is being run with elevated privileges by a normal user.
Expand Down
Loading