summaryrefslogtreecommitdiffstats
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 37ae18a..b8391fc 100644
--- a/httpd.c
+++ b/httpd.c
@@ -31,6 +31,8 @@
#include <fcntl.h>
#include <errno.h>
#include <pwd.h>
+#include <arpa/inet.h>
+#include <unistd.h>
#include "rfb.h"
@@ -99,7 +101,7 @@ httpInitSockets(rfbScreenInfoPtr rfbScreen)
void
httpCheckFds(rfbScreenInfoPtr rfbScreen)
{
- int nfds, n;
+ int nfds;
fd_set fds;
struct timeval tv;
struct sockaddr_in addr;