summaryrefslogtreecommitdiff
path: root/include/my_sys.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-01-20 01:57:58 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-01-20 01:57:58 +0100
commit74cac79218c58e399bec261683617d66652663fe (patch)
tree43978b455d807351ff5b1a46b27323980d365166 /include/my_sys.h
parent139bf5ce4c3e67c287418a3c5043b056c9a5cf4d (diff)
downloadmariadb-git-74cac79218c58e399bec261683617d66652663fe.tar.gz
- Fix rpl_checksum test. Use basename of file in error messages, not the o
nes prefixed with .\ or ./ - Add my_basename() to mysys. - Do not compile files that are not needed on Windows (my_addr_resolve, an d safemalloc related stuff it it is not used) Avoids linker warnings about compilation of essentially empty files.
Diffstat (limited to 'include/my_sys.h')
-rw-r--r--include/my_sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index cb5fa317888..fa79af51c7e 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -639,6 +639,7 @@ extern int my_fclose(FILE *fd,myf MyFlags);
extern File my_fileno(FILE *fd);
extern int my_chsize(File fd,my_off_t newlength, int filler, myf MyFlags);
extern int my_chmod(const char *name, mode_t mode, myf my_flags);
+extern const char *my_basename(const char *filename);
extern void thr_set_sync_wait_callback(void (*before_sync)(void),
void (*after_sync)(void));
extern int my_sync(File fd, myf my_flags);