wood, I am tossing it.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89838
13f79535-47bb-0310-9956-
ffa450edef68
#include "mod_core.h"
-#if APR_HAVE_NETDB_H
-#include <netdb.h>
-#endif
#if APR_HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
char maxfwd_set;
} proxy_server_conf;
-struct per_thread_data {
- struct hostent hpbuf;
- u_long ipaddr;
- char *charpbuf[2];
-};
-
typedef struct {
conn_rec *connection;
char *hostname;
}
}
}
-
-#if defined WIN32
-
-static DWORD tls_index;
-
-BOOL WINAPI DllMain (HINSTANCE dllhandle, DWORD reason, LPVOID reserved)
-{
- LPVOID memptr;
-
- switch (reason) {
- case DLL_PROCESS_ATTACH:
- tls_index = TlsAlloc();
- case DLL_THREAD_ATTACH: /* intentional no break */
- TlsSetValue (tls_index, malloc (sizeof (struct per_thread_data)));
- break;
- case DLL_THREAD_DETACH:
- memptr = TlsGetValue (tls_index);
- if (memptr) {
- free (memptr);
- TlsSetValue (tls_index, 0);
- }
- break;
- }
-
- return TRUE;
-}
-
-#endif