Summary: * (Win32) Fixed link error apr_pstrmemdup in flood_socket_keepalive.c.
This patch addresses a link error. The code invoked apr_pstrmemdup() in flood_socket_keepalive.c without including the proper declaration. The compiler generates its own guess, which is incorrect. The code now includes the file: apr_strings.h so that it picks up the proper declaration of apr_pstrmemdup. Below are examples of the compile-time warning and the link failures that this patch addresses. flood_socket_keepalive.c(407) : warning C4013: 'apr_pstrmemdup' undefined; assuming extern returning int flood_socket_keepalive.obj : error LNK2001: unresolved external symbol _apr_pstrmemdup Index: flood_socket_keepalive.c =================================================================== RCS file: /home/cvspublic/httpd-test/flood/flood_socket_keepalive.c,v retrieving revision 1.15 diff -u -r1.15 flood_socket_keepalive.c --- flood_socket_keepalive.c 22 Jul 2002 05:50:05 -0000 1.15 +++ flood_socket_keepalive.c 28 Jan 2003 23:50:58 -0000 @@ -53,6 +53,7 @@ */ #include <apr.h> +#include <apr_strings.h> #if APR_HAVE_STDLIB_H #include <stdlib.h> /* rand/strtol */