Skip to content

Add QNX support - #1792

Closed
nnarayanamurthy wants to merge 3 commits into
libssh2:masterfrom
qnx-ports:murthy/qnx-libssh2-1.11.1
Closed

nnarayanamurthy wants to merge 3 commits into
libssh2:masterfrom
qnx-ports:murthy/qnx-libssh2-1.11.1

Conversation

@nnarayanamurthy

Copy link
Copy Markdown

No description provided.

@nnarayanamurthy
nnarayanamurthy marked this pull request as draft January 22, 2026 06:12
Comment thread example/direct_tcpip.c
#endif

#ifdef __QNX__
#include <sys/time.h>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is needed from this header file? It's POSIX so presumably, other systems should be including it as well if it's truly needed in the code. And if so, then it should be included with an #ifdef HAVE_SYS_TIME_H barrier rather than an OS-specific one.

This comment applies to all other similar constructions in this patch.

Comment thread example/scp.c
static const char *pubkey = "/home/username/.ssh/id_rsa.pub";
static const char *privkey = "/home/username/.ssh/id_rsa";
#ifdef __QNX__
static const char *username = "qnxuser";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The actual username and password are intended to be examples for people to change as required. This change is not needed for the example to be correct on QNX.

@vszakats

vszakats commented Apr 8, 2026

Copy link
Copy Markdown
Member

FYI PR #1688 re-adds sys/select.h includes to examples.

vszakats added a commit to vszakats/libssh2 that referenced this pull request Apr 15, 2026
Reported-by: nnarayanamurthy on github
Fixes libssh2#1792
Follow-up to e53aae0 libssh2#1001
vszakats added a commit to vszakats/libssh2 that referenced this pull request Apr 15, 2026
Reported-by: nnarayanamurthy on github
Fixes libssh2#1792
Follow-up to e53aae0 libssh2#1001
@vszakats vszakats closed this in d8b219b Apr 15, 2026
@vszakats

Copy link
Copy Markdown
Member

@nnarayanamurthy I merged two fixes for missing includes #1688 and #1863.
Please retry on QNX and report if there remains any build failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants