Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f57cf654
Commit
f57cf654
authored
Jun 21, 2006
by
jani@ua141d10.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup to patch for Bug#18246, "compilation error with tcp_wrapper"
parent
c22e7f2d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
include/my_libwrap.h
include/my_libwrap.h
+9
-0
mysys/my_libwrap.c
mysys/my_libwrap.c
+9
-6
sql/mysqld.cc
sql/mysqld.cc
+3
-10
No files found.
include/my_libwrap.h
View file @
f57cf654
...
@@ -14,6 +14,15 @@
...
@@ -14,6 +14,15 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#ifdef HAVE_LIBWRAP
#include <tcpd.h>
#include <syslog.h>
#ifdef NEED_SYS_SYSLOG_H
#include <sys/syslog.h>
#endif
/* NEED_SYS_SYSLOG_H */
extern
void
my_fromhost
(
struct
request_info
*
req
);
extern
void
my_fromhost
(
struct
request_info
*
req
);
extern
int
my_hosts_access
(
struct
request_info
*
req
);
extern
int
my_hosts_access
(
struct
request_info
*
req
);
extern
char
*
my_eval_client
(
struct
request_info
*
req
);
extern
char
*
my_eval_client
(
struct
request_info
*
req
);
#endif
/* HAVE_LIBWRAP */
mysys/my_libwrap.c
View file @
f57cf654
...
@@ -14,14 +14,15 @@
...
@@ -14,14 +14,15 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/*
This is needed to be able to compile with original libwrap header
files that don't have the prototypes
*/
#include <my_global.h>
#include <my_global.h>
#include <my_libwrap.h>
#ifdef HAVE_LIBWRAP
#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
)
void
my_fromhost
(
struct
request_info
*
req
)
{
{
...
@@ -37,3 +38,5 @@ char *my_eval_client(struct request_info *req)
...
@@ -37,3 +38,5 @@ char *my_eval_client(struct request_info *req)
{
{
eval_client
(
req
);
eval_client
(
req
);
}
}
#endif
/* HAVE_LIBWRAP */
sql/mysqld.cc
View file @
f57cf654
...
@@ -120,16 +120,7 @@ extern "C" { // Because of SCO 3.2V4.2
...
@@ -120,16 +120,7 @@ extern "C" { // Because of SCO 3.2V4.2
#include <sys/utsname.h>
#include <sys/utsname.h>
#endif
/* __WIN__ */
#endif
/* __WIN__ */
#ifdef HAVE_LIBWRAP
#include <my_libwrap.h>
#include <tcpd.h>
#include <syslog.h>
#ifdef NEED_SYS_SYSLOG_H
#include <sys/syslog.h>
#endif
/* NEED_SYS_SYSLOG_H */
int
allow_severity
=
LOG_INFO
;
int
deny_severity
=
LOG_WARNING
;
#endif
/* HAVE_LIBWRAP */
#ifdef HAVE_SYS_MMAN_H
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#include <sys/mman.h>
...
@@ -591,6 +582,8 @@ static const char* default_dbug_option;
...
@@ -591,6 +582,8 @@ static const char* default_dbug_option;
#endif
#endif
#ifdef HAVE_LIBWRAP
#ifdef HAVE_LIBWRAP
const
char
*
libwrapName
=
NULL
;
const
char
*
libwrapName
=
NULL
;
int
allow_severity
=
LOG_INFO
;
int
deny_severity
=
LOG_WARNING
;
#endif
#endif
#ifdef HAVE_QUERY_CACHE
#ifdef HAVE_QUERY_CACHE
static
ulong
query_cache_limit
=
0
;
static
ulong
query_cache_limit
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment