diff options
author | unknown <jani@ua141d10.elisa.omakaista.fi> | 2006-06-21 02:23:18 +0300 |
---|---|---|
committer | unknown <jani@ua141d10.elisa.omakaista.fi> | 2006-06-21 02:23:18 +0300 |
commit | 72cb1d5049c781ed82f0f0859df74383d0d62824 (patch) | |
tree | f232c98b9ad395e3609ff68476ce45fc913e2e44 /mysys/my_libwrap.c | |
parent | 783866ffe105c3e83a9bbc101ddd31c0d8a81d1e (diff) | |
download | mariadb-git-72cb1d5049c781ed82f0f0859df74383d0d62824.tar.gz |
Fix for Bug#18246 "compilation error with tcp_wrapper"
sql/mysqld.cc:
Fix for Bug#18246 "compilation error with tcp_wrapper"
Added wrapper functions.
Diffstat (limited to 'mysys/my_libwrap.c')
-rw-r--r-- | mysys/my_libwrap.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/mysys/my_libwrap.c b/mysys/my_libwrap.c new file mode 100644 index 00000000000..29a0ecf3fc6 --- /dev/null +++ b/mysys/my_libwrap.c @@ -0,0 +1,39 @@ +/* Copyright (C) 2003 MySQL AB + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +#include <my_global.h> +#ifdef HAVE_LIBWRAP +#include <tcpd.h> +#include <syslog.h> +#ifdef NEED_SYS_SYSLOG_H +#include <sys/syslog.h> +#endif /* NEED_SYS_SYSLOG_H */ +#endif + +void my_fromhost(struct request_info *req) +{ + fromhost(req); +} + +int my_hosts_access(struct request_info *req) +{ + hosts_access(req); +} + +char *my_eval_client(struct request_info *req) +{ + eval_client(req); +} |