From 0f8b45217c2832fc31abc35b77e8b35b6bd4e230 Mon Sep 17 00:00:00 2001 From: sekelsenmat Date: Sun, 24 Sep 2006 22:59:32 +0000 Subject: [PATCH] Fixes for 2.0 bindings on windows git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@15 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- httpd/httpd_2_0/apr/apr.pas | 8 +- httpd/httpd_2_0/http_log.inc | 3 +- httpd/mod_hello.lpi | 282 +++++++++++++++++++++-------------- httpd/mod_hello.lpr | 2 +- 4 files changed, 179 insertions(+), 116 deletions(-) diff --git a/httpd/httpd_2_0/apr/apr.pas b/httpd/httpd_2_0/apr/apr.pas index 41e10da6c..dc67ecb0d 100644 --- a/httpd/httpd_2_0/apr/apr.pas +++ b/httpd/httpd_2_0/apr/apr.pas @@ -110,8 +110,6 @@ type apr_int16_t = SmallInt; Papr_int16_t = ^SmallInt; - va_list = Pointer; - // Network structures sockaddr = record @@ -119,6 +117,10 @@ type sa_data: array [1..14] of Char; // (NBO) 14 bytes of protocol address end; +{$ifndef windows} + + va_list = Pointer; + in_addr = record s_addr: culong; // load with inet_aton() end; @@ -130,6 +132,8 @@ type sin_zero: array [1..8] of Char; // zero this if you want to end; +{$endif} + in6_addr = record Case Integer of 1: (u6_addr8: array [1..16] of Byte); diff --git a/httpd/httpd_2_0/http_log.inc b/httpd/httpd_2_0/http_log.inc index 7cb0e36e2..12c158702 100644 --- a/httpd/httpd_2_0/http_log.inc +++ b/httpd/httpd_2_0/http_log.inc @@ -147,8 +147,7 @@ procedure ap_log_error( const file_: PChar; line, level: Integer; status: apr_status_t; const s: Pserver_rec; const fmt: PChar; others: array of const); - {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF} - external LibHTTPD name 'ap_log_error'; + cdecl; external LibHTTPD name 'ap_log_error'; // __attribute__((format(printf,6,7))); diff --git a/httpd/mod_hello.lpi b/httpd/mod_hello.lpi index 53cf6ec84..65af9a6b4 100644 --- a/httpd/mod_hello.lpi +++ b/httpd/mod_hello.lpi @@ -1,16 +1,36 @@ - + - + + + + + + + + + + + + + + + + + + + + + @@ -18,16 +38,16 @@ - + - + - - + + @@ -40,446 +60,486 @@ - - - + + + + + - + - - - + + + + + - + - + - + - + - - + + + + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + - - + + diff --git a/httpd/mod_hello.lpr b/httpd/mod_hello.lpr index aa8bebbd7..d238086a0 100644 --- a/httpd/mod_hello.lpr +++ b/httpd/mod_hello.lpr @@ -15,7 +15,7 @@ library mod_hello; {$DEFINE WINDOWS} {$ENDIF} -{$define Apache2_2} +{$define Apache2_0} uses SysUtils, httpd {$ifndef Apache1_3}, apr{$endif};