- give roshttpd a rbuild file

- include it in build
- fix building with msvc

svn path=/trunk/; revision=25059
This commit is contained in:
Johannes Anderwald 2006-12-03 23:35:02 +00:00
parent 231c494a6f
commit 369fa23f46
8 changed files with 34 additions and 12 deletions

View file

@ -25,6 +25,9 @@
<directory name="route">
<xi:include href="route/route.rbuild" />
</directory>
<directory name="roshttpd">
<xi:include href="roshttpd/roshttpd.rbuild" />
</directory>
<directory name="telnet">
<xi:include href="telnet/telnet.rbuild" />
</directory>

View file

@ -7,9 +7,9 @@
* REVISIONS:
* CSH 01/09/2000 Created
*/
#include <socket.h>
#include <string.h>
#include <error.h>
#include <socket.h>
#include <iterator.h>
// ***************************** CSocket *****************************

View file

@ -12,7 +12,7 @@
* - Implement more entity-header entries
*/
#include <debug.h>
#include <iostream.h>
#include <iostream>
#include <string.h>
#include <http.h>
@ -192,9 +192,6 @@ BOOL CHttpParser::Parse()
{
BOOL bStatus;
CHAR ch;
if (RequestLine()) {
do {
if (!ReadString(sHeader, sizeof(sHeader)))

View file

@ -6,8 +6,8 @@
#ifndef __CONFIG_H
#define __CONFIG_H
#include <list.h>
#include <httpd.h>
#include <list.h>
// General constants
#define APP_DESCRIPTION _T("ReactOS HTTP Daemon")
@ -15,8 +15,8 @@
// Default configuration
#define dcfgDescription _T("Default configuration")
#define dcfgMainBase _T("C:\\roshttpd\\")
#define dcfgHttpBase "C:\\roshttpd\\HttpBase\\"
#define dcfgDefaultResource "index.html"
#define dcfgHttpBase _T("C:\\roshttpd\\HttpBase\\")
#define dcfgDefaultResource _T("index.html")
#define dcfgDefaultPort 80
class CConfig {

View file

@ -9,7 +9,7 @@
#include <stdio.h>
#ifdef DBG
#define DPRINT(x...) printf(x)
#define DPRINT(x, ...) printf(x)
#else
#define DPRINT(x...)
#endif

View file

@ -6,8 +6,8 @@
#ifndef __HTTPD_H
#define __HTTPD_H
#include <thread.h>
#include <socket.h>
#include <thread.h>
#include <http.h>
#define HTTPD_START WM_USER + 1

View file

@ -5,8 +5,7 @@
*/
#ifndef __SOCKET_H
#define __SOCKET_H
#include <msvcrt/stdio.h>
#include <windows.h>
#include <stdio.h>
#include <winsock2.h>
#include <thread.h>
#include <list.h>

View file

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<module name="roshttpd" type="win32cui" installbase="system32" installname="roshttpd.exe" stdlib="host">
<include base="roshttpd">include</include>
<define name="__USE_W32API" />
<define name="__USE_W32_SOCKETS" />
<define name="_WIN32_IE">0x600</define>
<define name="_WIN32_WINNT">0x501</define>
<library>kernel32</library>
<library>ws2_32</library>
<library>kernel32</library>
<file>config.cpp</file>
<file>error.cpp</file>
<file>http.cpp</file>
<file>httpd.cpp</file>
<file>roshttpd.cpp</file>
<directory name="common" >
<file>list.cpp</file>
<file>roshttpd.rc</file>
<file>socket.cpp</file>
<file>thread.cpp</file>
</directory>
</module>