constexpr to declare number of fds
This commit is contained in:
		| @@ -45,9 +45,9 @@ namespace ix | |||||||
|         } |         } | ||||||
|  |  | ||||||
| #ifdef __linux__ | #ifdef __linux__ | ||||||
|         int nfds = 2; |         constexpr int nfds = 2; | ||||||
| #else | #else | ||||||
|         int nfds = 1; |         constexpr int nfds = 1; | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|         struct pollfd fds[nfds]; |         struct pollfd fds[nfds]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user