Browse Source

* allow compilation for apache24/apache22

Michael VAN CANNEYT 2 years ago
parent
commit
7775d1663c
1 changed files with 10 additions and 3 deletions
  1. 10 3
      packages/fcl-web/examples/echo/apache/echo.lpr

+ 10 - 3
packages/fcl-web/examples/echo/apache/echo.lpr

@@ -2,18 +2,25 @@ Library echo;
 
 
 {$mode objfpc}{$H+}
 {$mode objfpc}{$H+}
 
 
+{ $define use_apache22}
+
 Uses
 Uses
 {$ifdef unix}
 {$ifdef unix}
-  cthreads,
+  cthreads, cwstring,
+{$endif}
+{$ifdef use_apache22}
+  httpd,fpApache,
+{$else}
+  httpd24,fpApache24,
 {$endif}
 {$endif}
-  httpd,fpApache, wmecho;
+  wmecho;
 
 
 Const
 Const
 
 
 { The following constant is used to export the module record. It must 
 { The following constant is used to export the module record. It must 
   always match the name in the LoadModule statement in the apache
   always match the name in the LoadModule statement in the apache
   configuration file(s). It is case sensitive !}
   configuration file(s). It is case sensitive !}
-  ModuleName='mod_echo';
+  ModuleName='mod_fpcecho';
 
 
 { The following constant is used to determine whether the module will
 { The following constant is used to determine whether the module will
   handle a request. It should match the name in the SetHandler statement
   handle a request. It should match the name in the SetHandler statement