1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

From a966322704 Mon Sep 17 00:00:00 2001

Subject: [PATCH] fix build on QNX 6.5.0
This commit is contained in:
Arenoros 2022-06-30 12:37:37 +03:00 committed by Andy Green
parent 173c84a595
commit e3ed2ba690
2 changed files with 3 additions and 3 deletions

View file

@ -131,7 +131,7 @@ lws_dir(const char *dirpath, void *user, lws_dir_callback_function cb)
}
for (i = 0; i < n; i++) {
#if !defined(__sun)
#if !defined(__sun) && !defined(__QNX__)
unsigned int type = namelist[i]->d_type;
#endif
if (strchr(namelist[i]->d_name, '~'))
@ -143,7 +143,7 @@ lws_dir(const char *dirpath, void *user, lws_dir_callback_function cb)
* files are LDOT_UNKNOWN
*/
#if defined(__sun)
#if defined(__sun) || defined(__QNX__)
lws_dir_via_stat(combo, l, namelist[i]->d_name, &lde);
#else
/*

View file

@ -198,7 +198,7 @@ static const int ip_opt_lws_flags[] = {
#endif
}, ip_opt_val[] = {
IPTOS_LOWDELAY, IPTOS_THROUGHPUT, IPTOS_RELIABILITY
#if !defined(__OpenBSD__) && !defined(__sun)
#if !defined(__OpenBSD__) && !defined(__sun) && !defined(__QNX__)
, IPTOS_MINCOST
#endif
};