Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for QNX build environment and make Linux-only functions more POSIX-like. #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mgorchak-blackberry
Copy link

Hello!

This PR consist of two patches, first adds "build-qnx" folder to the project to provide support for QNX platform, second brings more POSIX like behavior to the linux platform functions what makes them usable under any POSIX compliant OS. Not all operation systems have extended "dirent" structure to obtain filesystem entries details and type.

Thank you!

@CLAassistant
Copy link

CLAassistant commented May 26, 2021

CLA assistant check
All committers have signed the CLA.

@bashbaug
Copy link
Contributor

Hi @mgorchak-blackberry, thank you for your contribution (and for your patience)! We discussed this PR in our weekly teleconference and our biggest concern is maintaining this build environment. Would it be possible to add this configuration to our CI? If not, we can merge this PR and we'll make our best effort not to break it, but it's possible we'll inadvertantly introduce a build break because it's not something we'll test regularly. Thanks!

@@ -61,11 +71,34 @@ void khrIcdOsVendorsEnumerate(void)
// attempt to load all files in the directory
for (dirEntry = readdir(dir); dirEntry; dirEntry = readdir(dir) )
{
#if defined(DT_REG)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a bit hard to follow because it breaks up a switch statement with an #ifdef. Would it be possible to refactor this code slightly to increase readability / maintainability? I think this could look something like: Initialize a flag to "false", set it to "true" in the #ifdef code when appropriate, then check the flag outside of the #ifdefs.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants