From 26a0dc74c248a4f9313e6d9afe38e8698c64c889 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Mon, 24 Jun 2002 09:17:18 +0000 Subject: add dhttpd 1.02a Minimal secure webserver. Fast and efficient, no cgi-bin support PR: 39769 Submitted by: Gea-Suan Lin --- www/dhttpd/files/patch-socket.cc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 www/dhttpd/files/patch-socket.cc (limited to 'www/dhttpd/files/patch-socket.cc') diff --git a/www/dhttpd/files/patch-socket.cc b/www/dhttpd/files/patch-socket.cc new file mode 100644 index 000000000000..d0cf933ff48b --- /dev/null +++ b/www/dhttpd/files/patch-socket.cc @@ -0,0 +1,27 @@ +--- src/socket.cc.orig Mon Jun 24 15:12:40 2002 ++++ src/socket.cc Mon Jun 24 15:13:03 2002 +@@ -17,6 +17,7 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#include + #include + #include + #include +@@ -24,7 +25,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -149,7 +149,7 @@ + do + { + cSidLen = sizeof( cSid ); +- s = accept( sock, &cSid, &cSidLen ); ++ s = accept( sock, &cSid, (socklen_t *) &cSidLen ); + } + while( s==-1 ); + -- cgit v1.2.3