summaryrefslogtreecommitdiffstats
path: root/httpd.c
diff options
context:
space:
mode:
authordscho <dscho>2003-02-09 15:04:00 +0000
committerdscho <dscho>2003-02-09 15:04:00 +0000
commit5030d53ff08665d27e388244aa22b272716240bc (patch)
tree64aa4ced924efed1e8c66579fce4e93ef97499d6 /httpd.c
parentf86f9cec24a85bff17b4635f09c00513a2c356c3 (diff)
downloadlibtdevnc-5030d53ff08665d27e388244aa22b272716240bc.tar.gz
libtdevnc-5030d53ff08665d27e388244aa22b272716240bc.zip
converted CARD{8,16,32} to uint{8,16,32}_t and included support for stdint.h
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/httpd.c b/httpd.c
index 328f416..15265c4 100644
--- a/httpd.c
+++ b/httpd.c
@@ -22,32 +22,43 @@
* USA.
*/
-#include <stdio.h>
+#include "rfb.h"
+
#include <ctype.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+#include <errno.h>
+
#ifdef WIN32
#include <winsock.h>
#define close closesocket
#else
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
-#include <pwd.h>
#include <arpa/inet.h>
-#include <unistd.h>
#endif
-#include <fcntl.h>
-#include <errno.h>
+#include <pwd.h>
+#endif
#ifdef USE_LIBWRAP
#include <tcpd.h>
#endif
-#include "rfb.h"
-
#define NOT_FOUND_STR "HTTP/1.0 404 Not found\r\n\r\n" \
"<HEAD><TITLE>File Not Found</TITLE></HEAD>\n" \
"<BODY><H1>File Not Found</H1></BODY>\n"