diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-07-31 19:29:07 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-07-31 19:29:07 +0200 |
commit | 0117a92fedc2e5294682127d54034af5b3f96c8e (patch) | |
tree | 0c075a3fa43f64a3895acc704bacf69a96afda14 /storage | |
parent | 42ea25d4c51b5466b4b03a29abe480e763732cf2 (diff) | |
download | mariadb-git-0117a92fedc2e5294682127d54034af5b3f96c8e.tar.gz |
MDEV-419 ensure that all HAVE_XXX constants can be set by cmake
add missing checks to configure.cmake
remove dead code and unused HAVE_xxx constants from the sources
Diffstat (limited to 'storage')
-rw-r--r-- | storage/maria/maria_chk.c | 3 | ||||
-rw-r--r-- | storage/myisam/mi_extra.c | 2 | ||||
-rw-r--r-- | storage/myisam/myisamchk.c | 3 |
3 files changed, 0 insertions, 8 deletions
diff --git a/storage/maria/maria_chk.c b/storage/maria/maria_chk.c index 27653ae5574..62225a7a4b0 100644 --- a/storage/maria/maria_chk.c +++ b/storage/maria/maria_chk.c @@ -21,9 +21,6 @@ #include <m_ctype.h> #include <stdarg.h> #include <my_getopt.h> -#ifdef HAVE_SYS_VADVICE_H -#include <sys/vadvise.h> -#endif #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> #endif diff --git a/storage/myisam/mi_extra.c b/storage/myisam/mi_extra.c index 92d7459dfc5..dab1f66ed6d 100644 --- a/storage/myisam/mi_extra.c +++ b/storage/myisam/mi_extra.c @@ -330,9 +330,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg) if (!share->temporary) flush_key_blocks(share->key_cache, share->kfile, &share->dirty_part_map, FLUSH_KEEP); -#ifdef HAVE_PWRITE _mi_decrement_open_count(info); -#endif if (share->not_flushed) { share->not_flushed=0; diff --git a/storage/myisam/myisamchk.c b/storage/myisam/myisamchk.c index fa8cc679997..7d8b577e8b0 100644 --- a/storage/myisam/myisamchk.c +++ b/storage/myisam/myisamchk.c @@ -20,9 +20,6 @@ #include <stdarg.h> #include <my_getopt.h> #include <my_bit.h> -#ifdef HAVE_SYS_VADVICE_H -#include <sys/vadvise.h> -#endif #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> #endif |