manoj       99/08/17 15:05:23

  Modified:    mpm/src/main http_main.c
               mpm/src/modules/mpm/dexter dexter.c
               mpm/src/modules/mpm/mpmt_pthread mpmt_pthread.c
               mpm/src/modules/mpm/winnt winnt.c
  Log:
  Move the code to force Expat linking into common code.
  
  Revision  Changes    Path
  1.10      +10 -0     apache-2.0/mpm/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/mpm/src/main/http_main.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -d -u -r1.9 -r1.10
  --- http_main.c       1999/08/17 20:58:54     1.9
  +++ http_main.c       1999/08/17 22:04:46     1.10
  @@ -352,6 +352,16 @@
       exit(0);
   }
   
  +/* force Expat to be linked into the server executable */
  +#if defined(USE_EXPAT) && !defined(SHARED_CORE_BOOTSTRAP)
  +#include "xmlparse.h"
  +const XML_LChar *suck_in_expat(void);
  +const XML_LChar *suck_in_expat(void)
  +{
  +    return XML_ErrorString(XML_ERROR_NONE);
  +}
  +#endif /* USE_EXPAT */
  +
   #ifndef SHARED_CORE_BOOTSTRAP
   /*
    * Force ap_validate_password() into the image so that modules like
  
  
  
  1.27      +0 -9      apache-2.0/mpm/src/modules/mpm/dexter/dexter.c
  
  Index: dexter.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/mpm/src/modules/mpm/dexter/dexter.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -d -u -r1.26 -r1.27
  --- dexter.c  1999/08/15 11:02:43     1.26
  +++ dexter.c  1999/08/17 22:04:54     1.27
  @@ -1630,12 +1630,3 @@
       dexter_hooks             /* register_hooks */
   };
   
  -/* force Expat to be linked into the server executable */
  -#if defined(USE_EXPAT) && !defined(SHARED_CORE_BOOTSTRAP)
  -#include "xmlparse.h"
  -const XML_LChar *suck_in_expat(void);
  -const XML_LChar *suck_in_expat(void)
  -{
  -    return XML_ErrorString(XML_ERROR_NONE);
  -}
  -#endif /* USE_EXPAT */
  
  
  
  1.29      +0 -9      
apache-2.0/mpm/src/modules/mpm/mpmt_pthread/mpmt_pthread.c
  
  Index: mpmt_pthread.c
  ===================================================================
  RCS file: 
/home/cvs/apache-2.0/mpm/src/modules/mpm/mpmt_pthread/mpmt_pthread.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -d -u -r1.28 -r1.29
  --- mpmt_pthread.c    1999/08/15 11:02:44     1.28
  +++ mpmt_pthread.c    1999/08/17 22:05:09     1.29
  @@ -1698,12 +1698,3 @@
       mpmt_pthread_hooks               /* register_hooks */
   };
   
  -/* force Expat to be linked into the server executable */
  -#if defined(USE_EXPAT) && !defined(SHARED_CORE_BOOTSTRAP)
  -#include "xmlparse.h"
  -const XML_LChar *suck_in_expat(void);
  -const XML_LChar *suck_in_expat(void)
  -{
  -    return XML_ErrorString(XML_ERROR_NONE);
  -}
  -#endif /* USE_EXPAT */
  
  
  
  1.8       +0 -10     apache-2.0/mpm/src/modules/mpm/winnt/winnt.c
  
  Index: winnt.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/mpm/src/modules/mpm/winnt/winnt.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -d -u -r1.7 -r1.8
  --- winnt.c   1999/08/17 19:51:43     1.7
  +++ winnt.c   1999/08/17 22:05:17     1.8
  @@ -1589,13 +1589,3 @@
       NULL,                    /* handlers */
       winnt_hooks              /* register_hooks */
   };
  -
  -/* force Expat to be linked into the server executable */
  -#if defined(USE_EXPAT) && !defined(SHARED_CORE_BOOTSTRAP)
  -#include "xmlparse.h"
  -const XML_LChar *suck_in_expat(void);
  -const XML_LChar *suck_in_expat(void)
  -{
  -    return XML_ErrorString(XML_ERROR_NONE);
  -}
  -#endif /* USE_EXPAT */
  
  
  

Reply via email to