pcs 98/02/06 09:59:32
Modified: src/main http_main.c Log: Add a dummy function containing a reference to a function defined in util_script.c to ensure that that file is linked into httpd. Without this, a httpd built with only http_core and mod_so modules would be missing all the Apache API functions defined in util_script. Revision Changes Path 1.281 +9 -0 apache-1.3/src/main/http_main.c Index: http_main.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/main/http_main.c,v retrieving revision 1.280 retrieving revision 1.281 diff -u -r1.280 -r1.281 --- http_main.c 1998/01/31 21:44:57 1.280 +++ http_main.c 1998/02/06 17:59:29 1.281 @@ -141,6 +141,15 @@ # endif /* _DEBUG */ #endif /* MULTITHREAD */ +/* This next function is never used. It is here to ensure that if we + * make all the modules into shared libraries that core httpd still + * includes the full Apache API. Without this function the objects in + * main/util_script.c would not be linked into a minimal httpd. + */ +static void force_library_loading(void) { + add_cgi_vars(NULL,NULL); +} + #include "explain.h" #if !defined(max)