summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorserg@sergbook.mysql.com <>2003-03-24 11:19:28 +0100
committerserg@sergbook.mysql.com <>2003-03-24 11:19:28 +0100
commit6c033b98542cce9985bb4f48478124909f7f6168 (patch)
tree084434ac9deb25d3782c5f026e39743224fffb0c /include
parentc7f224ca51b6699e502f11a1390e44e22db3a735 (diff)
downloadmariadb-git-6c033b98542cce9985bb4f48478124909f7f6168.tar.gz
make myisam usable without threads (and even w/o pthread_t)
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];