From 296167d6d222a84ef5c019f7572378075b0d7c7c Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Sun, 15 Apr 2012 01:54:28 +0200 Subject: [PATCH] fix compile error on unixes --- mysys/my_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mysys/my_init.c b/mysys/my_init.c index 14f831f72b2..193c8281577 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -29,13 +29,14 @@ #pragma comment(lib, "ws2_32") #endif my_bool have_tcpip=0; -extern pthread_key(struct st_my_thread_var*, THR_KEY_mysys); static void my_win_init(void); static my_bool win32_init_tcp_ip(); #else #define my_win_init() #endif +extern pthread_key(struct st_my_thread_var*, THR_KEY_mysys); + #define SCALE_SEC 100 #define SCALE_USEC 10000