@@ -347,12 +347,12 @@ static void fcgi_setup_signals(void)
347347}
348348#endif
349349
350- void fcgi_set_in_shutdown (int new_value )
350+ FCGI_API void fcgi_set_in_shutdown (int new_value )
351351{
352352 in_shutdown = new_value ;
353353}
354354
355- int fcgi_in_shutdown (void )
355+ FCGI_API int fcgi_in_shutdown (void )
356356{
357357 return in_shutdown ;
358358}
@@ -376,7 +376,7 @@ void __attribute__((weak)) fcgi_log(int type, const char *format, ...) {
376376}
377377#endif
378378
379- int fcgi_init (void )
379+ FCGI_API int fcgi_init (void )
380380{
381381 if (!is_initialized ) {
382382#ifndef _WIN32
@@ -723,7 +723,7 @@ FCGI_API int fcgi_listen(const char *path, int backlog)
723723 return listen_socket ;
724724}
725725
726- void fcgi_set_allowed_clients (char * ip )
726+ FCGI_API void fcgi_set_allowed_clients (char * ip )
727727{
728728 char * cur , * end ;
729729 int n ;
@@ -1146,7 +1146,7 @@ FCGI_API int fcgi_read(fcgi_request *req, char *str, int len)
11461146 return n ;
11471147}
11481148
1149- void fcgi_close (fcgi_request * req , int force , int destroy )
1149+ FCGI_API void fcgi_close (fcgi_request * req , int force , int destroy )
11501150{
11511151 if (destroy && req -> has_env ) {
11521152 fcgi_hash_clean (& req -> env );
@@ -1199,7 +1199,7 @@ void fcgi_close(fcgi_request *req, int force, int destroy)
11991199 }
12001200}
12011201
1202- int fcgi_is_closed (fcgi_request * req )
1202+ FCGI_API int fcgi_is_closed (fcgi_request * req )
12031203{
12041204 return (req -> fd < 0 );
12051205}
@@ -1609,19 +1609,19 @@ FCGI_API void fcgi_impersonate(void)
16091609}
16101610#endif
16111611
1612- void fcgi_set_mgmt_var (const char * name , size_t name_len , const char * value , size_t value_len )
1612+ FCGI_API void fcgi_set_mgmt_var (const char * name , size_t name_len , const char * value , size_t value_len )
16131613{
16141614 zval zvalue ;
16151615 ZVAL_NEW_STR (& zvalue , zend_string_init (value , value_len , 1 ));
16161616 zend_hash_str_add (& fcgi_mgmt_vars , name , name_len , & zvalue );
16171617}
16181618
1619- void fcgi_free_mgmt_var_cb (zval * zv )
1619+ FCGI_API void fcgi_free_mgmt_var_cb (zval * zv )
16201620{
16211621 pefree (Z_STR_P (zv ), 1 );
16221622}
16231623
1624- const char * fcgi_get_last_client_ip ()
1624+ FCGI_API const char * fcgi_get_last_client_ip ()
16251625{
16261626 static char str [INET6_ADDRSTRLEN ];
16271627
0 commit comments