summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/myisam.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/myisam.h b/include/myisam.h
index def8b492681..11dae5f59ba 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -366,14 +366,18 @@ typedef struct st_sort_info
SORT_KEY_BLOCKS *key_block,*key_block_end;
/* sync things*/
uint got_error, threads_running;
+#ifdef THREAD
pthread_mutex_t mutex;
pthread_cond_t cond;
+#endif
} SORT_INFO;
typedef struct st_mi_sort_param
{
+#ifdef THREAD
pthread_t thr;
+#endif
IO_CACHE read_cache, tempfile, tempfile_for_exceptions;
DYNAMIC_ARRAY buffpek;
ulonglong unique[MI_MAX_KEY_SEG+1];