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:
parent
50ed5217b0
commit
9bfca5b7c3
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
/*
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue