https://bugs.gentoo.org/423215

--- a/ipager.cpp
+++ b/ipager.cpp
@@ -29,6 +29,7 @@
 #include <config.h>
 #endif
 
+#include <unistd.h>
 #include <iostream>
 #include <string>
 using namespace std;
