diff --git a/manual/examples/inetsrv.c b/manual/examples/inetsrv.c
index 003a951473..b854fe6722 100644
--- a/manual/examples/inetsrv.c
+++ b/manual/examples/inetsrv.c
@@ -15,6 +15,7 @@
along with this program; if not, see .
*/
+#include
#include
#include
#include
@@ -59,7 +60,7 @@ main (void)
fd_set active_fd_set, read_fd_set;
int i;
struct sockaddr_in clientname;
- size_t size;
+ socklen_t size;
/* Create the socket and set it up to accept connections. */
sock = make_socket (PORT);