From c44eff55ba984d13a338fd78adc179b818a07cf7 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 19 Apr 2006 11:08:22 +0300 Subject: Fixed compilation error ensure check_if_legal_table_name is also defined on unix --- mysys/my_access.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mysys/my_access.c') diff --git a/mysys/my_access.c b/mysys/my_access.c index ddf3fc6622a..2d9c1c45efd 100644 --- a/mysys/my_access.c +++ b/mysys/my_access.c @@ -156,6 +156,14 @@ int check_if_legal_tablename(const char *name) str_list_find(&reserved_names[1], name)); } +#else + +int check_if_legal_tablename(const char *name) +{ + return 0; +} + +#endif /* defined(MSDOS) || defined(__WIN__) */ #if defined(MSDOS) || defined(__WIN__) || defined(__EMX__) @@ -199,4 +207,5 @@ int check_if_legal_filename(const char *path) } DBUG_RETURN(0); } -#endif + +#endif /* defined(MSDOS) || defined(__WIN__) || defined(__EMX__) */ -- cgit v1.2.1