mirror of
https://github.com/apache/nuttx.git
synced 2026-09-15 07:01:05 +00:00
include/sys/select.h: Fix compiler error when CONFIG_NSOCKET_DESCRIPTORS is undefined.
This commit is contained in:
parent
12b92c366b
commit
acca831c11
1 changed files with 5 additions and 1 deletions
|
|
@ -52,7 +52,11 @@
|
|||
|
||||
/* Get the total number of descriptors that we will have to support */
|
||||
|
||||
#define FD_SETSIZE (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS)
|
||||
#ifdef CONFIG_NSOCKET_DESCRIPTORS
|
||||
# define FD_SETSIZE (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS)
|
||||
#else
|
||||
# define FD_SETSIZE CONFIG_NFILE_DESCRIPTORS
|
||||
#endif
|
||||
|
||||
/* We will use a 32-bit bitsets to represent the set of descriptors. How
|
||||
* many uint32_t's do we need to span all descriptors?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue