#include <utility>
#include <algorithm>
+#include <cstdlib>
+
#include "baseproc-sys.h"
static std::vector<bool> usedfds = {true, true, true};
int close(int fd)
{
- if (fd >= usedfds.size()) abort();
+ if (size_t(fd) >= usedfds.size()) abort();
usedfds[fd] = false;
return 0;