"Fossies" - the Fresh Open Source Software Archive

Member "mod_fastcgi-2.4.7-0910052141/debian/patches/apache2.2-compat.dpatch" (10 Apr 2012, 2053 Bytes) of package /linux/www/apache_httpd_modules/old/mod_fastcgi-2.4.7-0910052141.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh /usr/share/dpatch/dpatch-run
    2 ## apache2.2-compat.dpatch by daniel.smertnig at gmail.com
    3 ##
    4 ## All lines beginning with `## DP:' are a description of the patch.
    5 ## DP: compat for Apache 2.2
    6 ## downlowded from: http://www.fastcgi.com/archives/fastcgi-developers/2005-December/004060.html
    7 ##
    8 
    9 @DPATCH@
   10 diff -ruN mod_fastcgi-2.4.2/fcgi.h mod_fastcgi-2.4.2-ap22/fcgi.h
   11 --- mod_fastcgi-2.4.2/fcgi.h    2003-02-04 00:07:37.000000000 +0100
   12 +++ mod_fastcgi-2.4.2-ap22/fcgi.h   2005-12-07 21:05:55.000000000 +0100
   13 @@ -73,6 +73,36 @@
   14  #define ap_reset_timeout(a)
   15  #define ap_unblock_alarms()
   16  
   17 +/* starting with apache 2.2 the backward-compatibility defines for
   18 + * 1.3 APIs are not available anymore. Define them ourselves here.
   19 + */
   20 +#ifndef ap_copy_table
   21 +
   22 +#define ap_copy_table apr_table_copy
   23 +#define ap_cpystrn apr_cpystrn
   24 +#define ap_destroy_pool apr_pool_destroy
   25 +#define ap_isspace apr_isspace
   26 +#define ap_make_array apr_array_make
   27 +#define ap_make_table apr_table_make
   28 +#define ap_null_cleanup apr_pool_cleanup_null 
   29 +#define ap_palloc apr_palloc
   30 +#define ap_pcalloc apr_pcalloc
   31 +#define ap_psprintf apr_psprintf
   32 +#define ap_pstrcat apr_pstrcat
   33 +#define ap_pstrdup apr_pstrdup
   34 +#define ap_pstrndup apr_pstrndup
   35 +#define ap_push_array apr_array_push
   36 +#define ap_register_cleanup apr_pool_cleanup_register
   37 +#define ap_snprintf apr_snprintf
   38 +#define ap_table_add apr_table_add
   39 +#define ap_table_do apr_table_do
   40 +#define ap_table_get apr_table_get
   41 +#define ap_table_set apr_table_set
   42 +#define ap_table_setn apr_table_setn
   43 +#define ap_table_unset apr_table_unset
   44 +
   45 +#endif /* defined(ap_copy_table) */
   46 +
   47  #if (defined(HAVE_WRITEV) && !HAVE_WRITEV && !defined(NO_WRITEV)) || defined WIN32
   48  #define NO_WRITEV
   49  #endif
   50 diff -ruN mod_fastcgi-2.4.2/Makefile.AP2 mod_fastcgi-2.4.2-ap22/Makefile.AP2
   51 --- mod_fastcgi-2.4.2/Makefile.AP2  2002-07-29 03:36:34.000000000 +0200
   52 +++ mod_fastcgi-2.4.2-ap22/Makefile.AP2 2005-12-07 20:27:50.000000000 +0100
   53 @@ -20,8 +20,6 @@
   54  
   55  all: local-shared-build
   56  
   57 -install: install-modules
   58 -
   59  clean:
   60     -rm -f *.o *.lo *.slo *.la