constexpr to declare number of fds

This commit is contained in:
Benjamin Sergeant 2019-01-26 21:01:36 -08:00
parent b9c49c38ed
commit 58921592c8

View File

@ -45,9 +45,9 @@ namespace ix
}
#ifdef __linux__
int nfds = 2;
constexpr int nfds = 2;
#else
int nfds = 1;
constexpr int nfds = 1;
#endif
struct pollfd fds[nfds];